Search Results

Search: Posts Made By: Yoda
3,773
Posted By Yoda
OK, in that case short paths are going to be a...
OK, in that case short paths are going to be a problem for search & replace.

I guess you should convert the format from long to short and vice versa to achieve this.

Look at for help and see if...
3,773
Posted By Yoda
C:\>for %A in ("C:\PROGRA~1\TEST\*.*") do @echo...
C:\>for %A in ("C:\PROGRA~1\TEST\*.*") do @echo %~sA
C:\PROGRA~1\TEST\TESTIT~1.PNG
3,773
Posted By Yoda
Works for me! C:\>for /d %I in (*) do @echo...
Works for me!
C:\>for /d %I in (*) do @echo %~sI
C:\APACHE~1.27
C:\BD630A~1
C:\Dell
C:\DOCUME~2
C:\DOCUME~1
C:\Drivers
C:\local
C:\oracle
C:\PROGRA~1
C:\Temp
C:\WINDOWS

C:\>VER
...
3,773
Posted By Yoda
In this situation I would suggest to use short...
In this situation I would suggest to use short path.

You can get short path by running:
dir /x
Or in CLI or batch file you can get them by running:
for /d %I in (*) do @echo %~sI
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy