Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: CMD prompt error

by poj (Priest)
on Jan 23, 2012 at 21:03 UTC ( #949524=note: print w/ replies, xml ) Need Help??


in reply to CMD prompt error

Try replacing this code

if(system(-r $createdir)) {} else { $mw->messageBox (-default => 'Ok',-title => 'Alert!',-message => "Crea +te C:/temp directory first to run the program", -type => 'Ok',); exit; }
with this
unless ( -d $createdir ){ $mw->messageBox ( -default => 'Ok', -title => 'Alert!', -message => "Create $createdir directory first to run the program", -type => 'Ok',); exit; }
poj


Comment on Re: CMD prompt error
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-12-21 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls