|
ok this is the only way i could do it only ever going to be looking for 5 files in a certain directory and this is the code i found does now work
bit long winded and sure better way of doing it but i know it works thanks
;This check to see if files are in the correct folder for the isa files ;if they are not it extracts them from the zip file then runs the gawk file ;to the correct folder and sorts them
If NOT Exist('C:\foldera\$isaname1') Shell '%COMSPEC% /C C:\kix\WZUNZIP.exe -e C:\foldera\isafile.zip "$isaname1" C:\foldera\ ' Shell 'need the gawk command in here to make sure is done right then goes to next zip' Else ? "SORRY NOT COPYING FILE EXISTS" EndIf
If NOT Exist('C:\foldera\$isaname2') Shell '%COMSPEC% /C C:\kix\WZUNZIP.exe -e C:\foldera\isafile.zip "$isaname2" C:\foldera\ ' Shell 'need the gawk command in here to make sure is done right then goes to next zip' Else ? "SORRY NOT COPYING FILE EXISTS" EndIf
If NOT Exist('C:\foldera\$isaname3') Shell '%COMSPEC% /C C:\kix\WZUNZIP.exe -e C:\foldera\isafile.zip "$isaname3" C:\foldera\ ' Shell 'need the gawk command in here to make sure is done right then goes to next zip' Else ? "SORRY NOT COPYING FILE EXISTS" EndIf
If NOT Exist('C:\foldera\$isaname4') Shell '%COMSPEC% /C C:\kix\WZUNZIP.exe -e C:\foldera\isafile.zip "$isaname4" C:\foldera\ ' Shell 'need the gawk command in here to make sure is done right then goes to next zip' Else ? "SORRY NOT COPYING FILE EXISTS" EndIf
If NOT Exist('C:\foldera\$isaname5') Shell '%COMSPEC% /C C:\kix\WZUNZIP.exe -e C:\foldera\isafile.zip "$isaname5" C:\foldera\ ' Shell 'need the gawk command in here to make sure is done right then goes to next zip' Else ? "SORRY NOT COPYING FILE EXISTS" EndIf
|