IncredibleVolk
Technical User
DOES $FILESPEC WORK WHEN YOU'RE TRYING TO UNZIP A FILE?
I DON'T UNDERSTAND WHY THIS FILE ISN'T UNZIPPING.
string FileSpec = "S:\Client Services\TRANSUNION\051804\*.ZIP"
integer iRunTaskID
sZipName = "PWZIP.EXE"
sPWZipPath = $PWTASKPATH
sTargetPath = "S:\Client Services\TRANSUNION\051804"
statmsg "%s" sTargetPath
if findfirst FileSpec
strfmt sDos "%s" $filespec
sSourceFile = sDos
endif
pause 1
statmsg "%s" sSourceFile
shortpath sSourceFile sTemp
shortpath sTargetPath sTemp2
addfilename sPWZipPath sZipName
strfmt sCmdLine "%s %s`x01 %s`x01 -o" sPWZipPath sTemp sTemp2
usermsg "%s" sCmdLine
run sCmdLine iRunTaskID
while taskexists iRunTaskID
yield
endwhile
pause 5
endproc
I DON'T UNDERSTAND WHY THIS FILE ISN'T UNZIPPING.
string FileSpec = "S:\Client Services\TRANSUNION\051804\*.ZIP"
integer iRunTaskID
sZipName = "PWZIP.EXE"
sPWZipPath = $PWTASKPATH
sTargetPath = "S:\Client Services\TRANSUNION\051804"
statmsg "%s" sTargetPath
if findfirst FileSpec
strfmt sDos "%s" $filespec
sSourceFile = sDos
endif
pause 1
statmsg "%s" sSourceFile
shortpath sSourceFile sTemp
shortpath sTargetPath sTemp2
addfilename sPWZipPath sZipName
strfmt sCmdLine "%s %s`x01 %s`x01 -o" sPWZipPath sTemp sTemp2
usermsg "%s" sCmdLine
run sCmdLine iRunTaskID
while taskexists iRunTaskID
yield
endwhile
pause 5
endproc