Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How do I run a .bat file?

by blackmateria (Chaplain)
on Oct 24, 2001 at 02:39 UTC ( [id://120942]=note: print w/replies, xml ) Need Help??


in reply to How do I run a .bat file?

Etelka, you need to escape the backslashes (i.e. double them up):

system ("d:\\webmaster\\cgi-bin\\comb.bat");

Otherwise perl sees "\cg" and "\co" from "\cgi-bin\comb.bat" and interprets them as control characters. That'll give you get a "file not found" error instead of running the batch file like you expect. Hope this helps!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-24 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found