Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch File - WZZIP

Status
Not open for further replies.

mossbs

Programmer
Aug 19, 2008
102
GB
Hi all,

(think this is the correct forum for this - apologies if not!)

Got an issue with a batch file i am writing in that it is creating the zip file in the wrong place - even though i am using the -b switch which i believe is used to specify a location.

below is the line of code from the batch file for the wzzip command - Is my syntax correct?

Code:
WZZIP -bp:\Test2\ test.zip "\\s60\users\users\dmoss\Test1\*.mdb"

Rather than the .zip file being creating in '....\Test2\' it is being created in C:\Windows

Any ideas on this?!

One thing i have noticed is on running my batch file the first message that pops up in the CMD window is

'\\s60\dmoss$\batch'
CMD.ese was started with the above path as the current directory.
UNC paths are not supported. Defaulting to the Windows Directory

Is this what is causing the error? if so how do i get around this?

Any help greatly appreciated.

Cheers.
 
I think if you just specify the full path for the .zip file you are trying to create it will work:

WZZIP p:\Test2\test.zip "\\s60\users\users\dmoss\Test1\*.mdb"

The error you are getting does explain why your zip file is ending up in the windows folder. To get around it you could map a drive letter to \\s60\dmoss$\batch and then execute your batch file using the drive letter rather than the unc path.

However with the above syntax it should not matter if wzzip runs using windows as the home directory.

Jock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top