Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: system CALC.exe opens command prompt ??

by halley (Prior)
on Sep 09, 2011 at 17:44 UTC ( #925141=note: print w/ replies, xml ) Need Help??


in reply to system CALC.exe opens command prompt ??

No typo. Just Windows being stupid.

Try the following two commands on your command line. Skip perl altogether.

start c:\WINDOWS\system32\calc.exe start "c:\WINDOWS\system32\calc.exe" start /? [Enter] [Enter] start "" "c:\WINDOWS\system32\calc.exe"
If the first argument is in double-quotes, it assumes that it's a window title, not a command.

--
[ e d @ h a l l e y . c c ]


Comment on Re: system CALC.exe opens command prompt ??
Download Code
Re^2: system CALC.exe opens command prompt ??
by perlpreben (Beadle) on Sep 09, 2011 at 17:47 UTC
    LOL, that was easy!.... im just used to tying it up like that if I ever get executables with space in them. Thanks! That worked..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-12-22 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (110 votes), past polls