8.3 conversion still exists in Windows 8, at least in cmd.exe (I tested it). I 
googled "find 8.3 folder name" and found 
http://stackoverflow.com/questions/1333589/how-do-i-transform-the-working-directory-into-a-8-3-short-file-name-using-batch,
 which provides what appears to be an excellent answer if you're willing to 
hand the work to a batch script. If for some reason it doesn't work, you could 
also just hard code the altered path.

--
Todd

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mandeville, Rob
Sent: Tuesday, January 22, 2013 10:10 AM
To: 'jenkinsci-users@googlegroups.com'
Subject: RE: Converting paths with spaces

You mean like C:\PROGRA~1?  I don't think 8.3 conversion exists any more.  I 
think it went out with Windows 95.

Can you surround the argument with double-quotes?

--Rob

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Scott Evans
Sent: Tuesday, January 22, 2013 10:55 AM
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Converting paths with spaces

Within my ant build script, I have a legacy program that is failing because the 
workspace name has a space in it, and so it's failing as the whole path isn't 
getting passed in as an argument to this program.  It really isn't a solution 
at this time to change the project name to one without spaces, so I'm wondering 
if anyone has any quick/dirty suggestions on how to convert, within Ant, a path 
which has spaces in it into an 8.3 type path.

Thanks!
Scott
The information in this message is for the intended recipient(s) only and may 
be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
protected from disclosure. If you are not the intended recipient(s), or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any use, dissemination, distribution or 
copying of this communication is prohibited. If you have received this 
communication in error, please notify Litle & Co. immediately by replying to 
this message and then promptly deleting it and your reply permanently from your 
computer.

Reply via email to