Batch file script for extracting

June 27, 2013 at 23:05:29
Specs: Windows 7
want to copy the .zip file and extract the content to other folder say here CodeWright

but my below script is not working.. any one pls help....

copy D:\ D:\ts_mirr
7z e -y D:\ts_mirr\ -oD:\ts_mirr\CodeWright

See More: Batch file script for extracting

Report •

June 28, 2013 at 12:30:46
it looks like you should have a new file with the name "ts_mirr" with the same information as the ALso the 7z will have nothing to act on. Its possible the syntax has changed, however my guess is that its not finding the file?

Have you tried?

copy D:\ D:\ts_mirr\

:: mike

Report •

June 28, 2013 at 13:27:32
Hello Mike :-D
I think what you said would depend on if ts_mirr were an already existing directory or not. The script should have:
md d:\ts_mirr 2>nul
as its first line, to eliminate this ambiguity. If ts_mirr does not exist, then yes the zip-file will be copied to a file called ts_mirr, and not a directory as the OP intended.
Other than that, I could not get any errors to occur, neither syntax or nor functional.

Report •

June 28, 2013 at 13:38:07
I suppose I shouldn't have posted on a windows 7 forum, within the setup I have the line

copy D:\ D:\ts_mirr

makes a copy with the name ts_mirr, however I dont have the ts_mirr directory so that may be the why.

So I figured that was the problem. apologies to the original poster

:: mike

Report •

Related Solutions

Ask Question