Page 1 of 1

converting short path name to long path name

Posted: 17 May 2014 11:44
by sambasiva
Hi ,

I have run a command which outputs the java command line.
In that one of the directory name is in short path. (example: C:\instance\domains\DAC04Q~1.COM\COMMON~1)

Is there a I can get the full path from the above short path name ?


Thanks
SS

Re: converting short path name to long path name

Posted: 17 May 2014 14:26
by pieh-ejdsch
Hallo,

with Dir and ".?" at the end it prompt the full Name

Code: Select all

Dir /s/b/x C:\instance\domains\DAC04Q~1.COM\COMMON~1.?


Phil

Re: converting short path name to long path name

Posted: 17 May 2014 16:59
by npocmaka_

Re: converting short path name to long path name

Posted: 21 May 2014 09:30
by sambasiva
Hi pieh-ejdsch,

Dir /s/b/x C:\instance\domains\DAC04Q~1.COM\COMMON~1.?

returns only the fullname of the last directory i.e. commondomain is the output I get when the above command is run.

is there a way I can get the full name of the complete path ?


Thanks
SS

Re: converting short path name to long path name

Posted: 21 May 2014 13:46
by npocmaka_
have you checked the link in my previous post?