OZONE Asylum
Forums
OZONE
7zip command line question and System Variables?
This page's ID:
30614
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Greetings all. I am using 7zip to compress some files via batch script. Here is the batch script [code] @echo off set tdtd=none set ttrn=none for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set tdtd=%%i%%j%%k for /F "tokens=5-8 delims=:. " %%i in ('echo.^| time ^| find "current" ') do set ttrn=%%i%%j%%k%%l set tufn=%tdtd%%ttrn% 7z a -tzip %tufn%.zip @listfile.txt [/code] This does a great job at making the directories and files I have listed in listfile.txt as a zip file. Now for some reason when I add this code : [code] copy *.zip "C:\Program Files\7-Zip\backup" [/code] It doesn't copy them. That works by itself, but not in the above script. Not sure why. Any ideas? Also, I'd like to have the command 7z as a system variable but can't figure out how to get that working in Windows. I added it (at least I thought I did correctly) to the Environment Variables, but it doesn't call it straight from the command line. I have to be in that directory. Any ideas on that one? Thanks in advance! Later, C:\
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »