VBscript relative path

前端 未结 2 2419
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-19 13:26

I\'m trying to use the following script (It\'s being called by a Batch file, by the way) to unzip files in Windows XP:

strZipFile =\"C:\\test.zip\"                   


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-19 14:03

    This should get you the zip file's full path:

    strZipFile ="test.zip" 
    dim fso, fullPathToZip
    set fso = CreateObject("Scripting.FileSystemObject")
    fullPathToZip = fso.GetAbsolutePathName(strZipFile)
    

提交回复
热议问题