Forum Home
Press F1
 
Thread ID: 25393 2002-10-02 20:40:00 Batch File to Zip IE favourites & WAB John W (523) Press F1
Post ID Timestamp Content User
85459 2002-10-02 20:40:00 Tried to write a Batch file last night to Zip up Internet Explorer Favourites and Windows address book.

If someone can write it up to save onto A drive.

When i put in the full path, it came up with "To few arguements", after modifying it it came up with "Nothing to do"

Oh, everything is located in it default directory in Win98.

Thanks....John
John W (523)
85460 2002-10-02 22:22:00 Would you be able to show us the code in the batch file. That way we can see what needs fixing.. -=JM=- (16)
85461 2002-10-03 08:40:00 Ok, the background, Im writing a Batch File for an elderly friend who lives 12hrs drive away. The barch file is a simple on click item on his desktop, to save his extensive Gedcom (Geneaolgy files) plus his address book and Internet Favourites onto a floppy disk.

Ive managed the Gedcom files, but can get the IE Fav & WAB files to zip up and transfer into the floppy.

Here is the lines Ive written

C:\PKZIP\PKZIP -arp a:\MyABook c:\Program Files\Outlook Express\WAB
C:\PKZIP\PKZIP -arp a:\MyFav c:\Documents and Settings\John & Helen\Favourites*.*

WAB is an application, Favourites appears to be a folder (but pictured as a Star rather than a folder icon)

Thanks.....John.
John W (523)
85462 2002-10-03 09:11:00 Where to start?

Are you sure that DOS under W98 handles Long File Names? cant test, havent got it.

If not put them in "".

If WAB is an application, its WAB.exe. Or they mean {username}.wab, which is their username with a wab extension being their address book, much more likely.

Is favourites really spelt like that, its likely to be favorites (US spelling)
There should be a space before the *.*

Can you concatenate the switches? (-arp) or should it be -a -rp ?

time for a coffee
godfather (25)
85463 2002-10-03 10:49:00 First of all, do they have pkzip located in that folder.

Also are you sure those are the correct locations of the files. I know that on my win98se comp I have no "Documents and Settings" folder.

I don't think DOS will like the spaces either. Put the locations in "pathgoeshere".

hmmm I should dig out PKZIP again. I've forgotten all the commands.
-=JM=- (16)
85464 2002-10-04 03:38:00 Yep, the switches will have to be -a -rP (the uppercase is important), and you will need to have speech marks around the path like so:
C:\PKZIP\PKZIP -a -rP a:\MyFav "c:\Documents and Settings\John & Helen\Favourites\*.*"
antmannz (28)
85465 2002-10-04 03:47:00 Put PKZip on ya straight C:\
Make a batch file there:


PKZip c:\windows\favourites\*.* a:\Fav.zip
PKZip c:\%WAB Location%\Login.WAB a:\WAB.zip


Replace the %WAB Location% with the location of the WAB, I'm running 2K at the mo, but I think its windows\. Search for *.wab

I've done that before... Hope it helps

Cheers

Chilling_Silence
Chilling_Silence (9)
85466 2002-10-04 03:48:00 BTW, both the batch file and PKZip.Exe need to be on the C:\ Just for ease of use! Chilling_Silence (9)
1