http://qs321.pair.com?node_id=193570


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."