Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 wandering the Monastery: (5)
As of 2014-09-18 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (111 votes), past polls