I want zip a files up via the command line, i'm executing the following command from installation directory of 7-zip C:\Program Files (x86)\7-Zip\ . the command is '7z a -t7z -m0=copy archive.7z C:\temp\build*.* -wc:\temp2'. This issues is it not putting the archive.7z in c:\temp2 directory. I have tried the -o this is only for extraction.
It is however creating the file at location C:\Users\XXXXX\AppData\Local\VirtualStore\Program Files (x86)\7-Zip
any help is much appreciated
7z a c:\temp2\archive.7z
solved i added by running 7z a -t7z -m0=copy c:\temp2\archive.7z C:\temp\build. cant believe it was that simple need to look away from the code time to time !! hope this helps someone
thanks Igor ive just seen your post!!