Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Date: Tue, 29 May 2012 14:55:01 -0700 Organization: A noiseless patient Spider Lines: 39 Message-ID: References: <4fc4c1cb$0$6931$e4fe514c@news2.news.xs4all.nl> <23u9s7tr13usskfhim78anlj5g8pe3q9l1@4ax.com> <899d499e-c1ad-4863-b941-575aaaac1c4b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="wKah3EH8kutwAOV6+9FiEQ"; logging-data="21500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ot9EaKfw2Kg8BkPWt8ScLndwBxG/kksY=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:0u6x9fRUsDFmw2G2Ic9tyjsrtlM= Xref: csiph.com comp.lang.java.programmer:14918 On Tue, 29 May 2012 14:07:29 -0700 (PDT), Lew wrote: >Gene Wirchenko wrote: >> Lew wrote: >>> Gene Wirchenko wrote: >>>> then hit tab. Windows will do the rest, even adding appropriate quotes where >>>> necessary. Note that you must use the Windows \ path separator for this to work. >>> >>>"/" is a Windows path *element* separator. ";" is the path separator in Windows. >>> >>>Windows is fine with forward slashes in paths. I suspect the "%1" expansion. >> >> But since using "/" as a path element seprator in a command line >> will cause trouble, people tend to avoid using them as such. > >That is interesting to me. What trouble? > >I have used forward slashes as path element separators in Windows >command-line commands. I don't recall that it caused any trouble. I checked with Windows XP just before posting. The CLI did not like dir /download and no wonder since "/" is used in many command-line programs for indicating parameters. Windows 7 behaves the same way. (I just checked.) It is easier to just use backslashes and not have to worry if slash is acceptable in the current context. I prefer just typing and not having to think about typing. >I'm always learning from this forum. So do I. Sincerely, Gene Wirchenko