Computing.Net > Forums > Disk Operating System > Batch file to move and zip info

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file to move and zip info

Reply to Message Icon

Name: bosha000
Date: August 1, 2006 at 09:40:59 Pacific
OS: XP
CPU/Ram: 1 gig
Product: HP
Comment:

I'm trying to help out some of the employees I work with by creating .bat files to move their data instead of doing it manually. One thing I'm not sure of is can you zip a file up before moving it or while moving it within a BAT file? If so how?

I need to move stuff from folder A into folder B but it needs to be zipped in the B folder.

Thanks!




Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: August 1, 2006 at 11:10:01 Pacific
Reply:

pkzip -m x:\folderB\zipname y:\folderA\*.txt


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: Mike Newcomb
Date: August 1, 2006 at 16:44:27 Pacific
Reply:

Further to Mechanix's response pkzip has a multitude of facilities that should be checked out.

Almost certainly it can meet your requirements.

e.g. I used it for daily securies with a different ouput floppy or floppies each day of the week (6 in total), using one for sat/sun.

Good Luck - Keep us posted.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch file to move and zip info

DOS batch file to move files up www.computing.net/answers/dos/dos-batch-file-to-move-files-up/14778.html

Batch file to Create and Open Dir www.computing.net/answers/dos/batch-file-to-create-and-open-dir/14596.html

Using a batch file to name a file with the system date. www.computing.net/answers/dos/using-a-batch-file-to-name-a-file-with-the-system-date/3481.html