converting short path name to long path name

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sambasiva
Posts: 43
Joined: 02 Jun 2013 10:25

converting short path name to long path name

#1 Post by sambasiva » 17 May 2014 11:44

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

pieh-ejdsch
Posts: 240
Joined: 04 Mar 2014 11:14
Location: germany

Re: converting short path name to long path name

#2 Post by pieh-ejdsch » 17 May 2014 14:26

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


sambasiva
Posts: 43
Joined: 02 Jun 2013 10:25

Re: converting short path name to long path name

#4 Post by sambasiva » 21 May 2014 09:30

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

npocmaka_
Posts: 516
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: converting short path name to long path name

#5 Post by npocmaka_ » 21 May 2014 13:46

have you checked the link in my previous post?

Post Reply