Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14905

Re: Space in 'My Documents' directory not fixed by quoting or \ escaping

Path csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From bilsch <bilsch01@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Space in 'My Documents' directory not fixed by quoting or \ escaping
Date Tue, 29 May 2012 12:59:11 -0700
Organization A noiseless patient Spider
Lines 24
Message-ID <jq39qf$a3j$1@dont-email.me> (permalink)
References <jq2eme$o07$1@dont-email.me> <jq2mki$7cr$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 29 May 2012 19:59:12 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="llALXQ6TxsVqIoSLcrwVyA"; logging-data="10355"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pcADNjjB6zeeEmeJf3fVG"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
In-Reply-To <jq2mki$7cr$1@dont-email.me>
Cancel-Lock sha1:lJ1bnTEO+3ut6q0avfwQ7mWFRVU=
Xref csiph.com comp.lang.java.programmer:14905

Show key headers only | View raw


On 5/29/2012 7:31 AM, Mike Schilling wrote:
> "bilsch"<bilsch01@gmail.com>  wrote in message
> news:jq2eme$o07$1@dont-email.me...
>> I'm writing a DOS script that uses pathnames with the well known Windows
>> directory 'My Documents'. The name has a space in it that causes javac and
>> java commands to choke. Neither of the following works:
>> 'My Documents' (single quotes) or My\ Documents (escape the space).
>> Here is an example:
>>
>> javac -d C:/Users/Owner/'My Documents'/NetBeansProjects/%1/build/classes
>>
>> Can anyone tell me the workaround for this?
> Two things to try:
>
> 1. Use double-quotes instead of single ones.
> 2. Use "dir /x" to discover the short name for "My Documents" (I'd guess
> it's MYDOCU~1) and use that instead.
>
>
  I discovered that the directory is called simply 'Documents' in DOS 
instead of 'My Documents' as in Windows.  So there's no need of quoting. 
  I did try using the short DOS name for Documents, which is DOCUME~1, 
and that does work.  The javac command produces a class file.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 05:16 -0700
  Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Silvio Bierman <silvio@moc.com> - 2012-05-29 14:32 +0200
    Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Nigel Wade <nmw@ion.le.ac.uk> - 2012-05-29 13:58 +0100
      Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Lew <noone@lewscanon.com> - 2012-05-29 07:06 -0700
        Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Gene Wirchenko <genew@ocis.net> - 2012-05-29 09:27 -0700
          Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Lew <lewbloch@gmail.com> - 2012-05-29 14:07 -0700
            Re: Space in 'My Documents' directory not fixed by quoting or \ escaping glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-05-29 21:43 +0000
              Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Jim Janney <jjanney@shell.xmission.com> - 2012-05-29 16:37 -0600
            Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Gene Wirchenko <genew@ocis.net> - 2012-05-29 14:55 -0700
              Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 16:06 -0700
                Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Lew <noone@lewscanon.com> - 2012-06-02 09:31 -0700
                Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Gene Wirchenko <genew@ocis.net> - 2012-06-03 19:23 -0700
        Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:55 -0700
        Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Nigel Wade <nmw@ion.le.ac.uk> - 2012-05-30 10:30 +0100
      Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:54 -0700
    Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:50 -0700
  Re: Space in 'My Documents' directory not fixed by quoting or \ escaping "Mike Schilling" <mscottschilling@hotmail.com> - 2012-05-29 07:31 -0700
    Re: Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch <bilsch01@gmail.com> - 2012-05-29 12:59 -0700

csiph-web