Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: argument readin from command prompt

by JaWi (Hermit)
on Aug 28, 2002 at 20:27 UTC ( #193570=note: print w/replies, xml ) Need Help??


in reply to argument readin from command prompt

You should try to put quotes around the strings containing spaces. This way, the command interpreter can distinguish it as one, big, single argument (with spaces).

Success!

-- JaWi

"A chicken is an egg's way of producing more eggs."

  • Comment on Re: argument readin from command prompt

Replies are listed 'Best First'.
Re: Re: argument readin from command prompt
by charnos (Friar) on Aug 28, 2002 at 20:50 UTC
    JaWi is right, all you need there are some double or single quotes around the path for it to be interpreted correctly. As a note to save you some time though, I'm using a Win2k box at work, and if you have Explorer open, simply drag the file or directory icon that you want send to the script onto the command line, and Windows puts double quotes around the full path/file name. Handy! :)

    --edit: using! I'm USING! I currently am not, in fact, a verb present tense. :)
      Awesome!
      This is a feature I wasn't aware of! But, nice; very nice! Thanks for the tip!

      -- JaWi

      "A chicken is an egg's way of producing more eggs."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2022-10-02 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (11 votes). Check out past polls.

    Notices?