- - PR -
".." busting
1
| 投稿者 | 投稿内容 |
|---|---|
|
投稿日時: 2002-01-22 10:36
how do you remove ".." relative paths?
e.g. from: c:\\program files\\perl\\..\\..\\temp\\..\\junk to: c:\\junk (double \s above should read singles. automatically changed and seems no way to correct it) |
|
投稿日時: 2002-01-22 13:08
How about following sample? (Win2K)
Run 'help for' in a command prompt window for more details. ------------------------------------------------------------------ C:\>FOR /F %I IN ("c:\PROGRA~1\perl\..\..\temp\..\junk") DO echo %~fI C:\>echo c:\\junk c:\junk |
1
