- PR -

".." busting

1
投稿者投稿内容
Oregon
ベテラン
会議室デビュー日: 2001/08/01
投稿数: 52
お住まい・勤務地: Tualatin 97062
投稿日時: 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
投稿数: 3
投稿日時: 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

スキルアップ/キャリアアップ(JOB@IT)