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!

PKZIP

Status
Not open for further replies.

AAP

Programmer
May 8, 2000
93
GB
I am calling a batch file from to pass the contents of a zip file to a text file.

The batch file looks something like this.
pkzip -vb zipfile.zip>>tempfile.txt

When I call the batch file Under WIN98 the dos window runs:
pkzip -vb zipfile.zip>>tempfile.txt

but under NT it runs
pkzip -vb zipfile.zip 1>>tempfile.txt

Somehow a '1' has crept in there. As an experiment I created a batch file:
a>>b

When run under NT this runs:
a1>>b
Again a '1' has got in there. Any ideas how I can stop this?

[sig][/sig]
 
Are you really using the >> characters? If you are, this is almost certainly the problem if you are running a batch file. Just type "pkzip -vb zipfile tempfile.txt"

NT doesn't interpret control type characters well. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top