Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: argument readin from command prompt

by JaWi (Hermit)
on Aug 28, 2002 at 20:27 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found