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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shell in winxp

Status
Not open for further replies.

jonis2144

Programmer
Joined
Apr 26, 2002
Messages
7
Location
CA
Hi all

I am trying to get this to work on my winxp box :

Code:
Shell "c:\VortexBackup\wzzip -rp -ex " & SZA & "  " & FTZ & " "

It runs fine on my 98se but nogo on the xp
Does anyone have any suggestions?

btw.
Its purpose is to fire up winzip and zip FTZ(file to zip) and save it to SZA (save zip as)
 
Do you get any errors? does the command work from a command line?

Andy
 
looks as though those embedded blanks are whats causing the problems. i had difficulty with the shell statement and decided to use string variables containing the path and switches and whatever else got thrown in there. also, be sure , if you use strings, to use the + operator when adding the final \ to the directory path. there is some quirky thing with xp that requires the final \ to be added ( like path + "\" )...text strings are easier because you can take into account the program may be launched from a different directory. also, when joining strings in the shell command, use the & operator. using + wont work in the shell command. dont embed blanks in the strings, either...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top