Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: MS system open file with space

by SuicideJunkie (Priest)
on Feb 20, 2013 at 19:17 UTC ( #1019831=note: print w/ replies, xml ) Need Help??


in reply to MS system open file with space

Under XP:

c:\> start c:\
(Pops explorer window showing c:\)
c:\> start "c:\program files"
(Pops useless command prompt window at default directory)
c:\> start explorer "c:\program files"
(Pops explorer window at c:\program files)


Comment on Re: MS system open file with space
Select or Download Code
Re^2: MS system open file with space
by BrowserUk (Pope) on Feb 20, 2013 at 20:23 UTC
    c:\> start "c:\program files" (Pops useless command prompt window at default directory)

    That's because the optional first argument to start is a window title.

    If the first argument begins with ", then it is taken as a title -- take a look at the titlebar of that useless command prompt window.

    To disable that effect, prefix the directory with a dummy title:start "" "c:\program files"


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-09-19 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (132 votes), past polls