path - How to run a 7zip batch without copying the batch file to the 7zip folder in c -
path - How to run a 7zip batch without copying the batch file to the 7zip folder in c -
i have created batch file zip backups, batch files works if re-create batch file 7zip.exe folder on c drive; otherwise doesn't work . how run batch file location?
here command:
7z -mhe -p1234 -t7z "d:\batch test\2\%datetimef%.7z" "d:\batch test\1*.*" -mx0
path %path%;"c:\7zip"; 7z -mhe -p1234 -t7z "d:\batch test\2\%datetimef%.7z" "d:\batch test\1*.*" -mx0
where c:\7zip folder 7zip is.
the problem 7z.exe not in path variable , cannot found , executed.while when in same directory can found , there no problems execution.for script purposes can edit %path% variable path command or edit through environment variables .
batch-file path zip 7zip
Comments
Post a Comment