Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path to a program
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01151910
Message ID:
01152165
Views:
34
>>Which part is the error taking place in - the Shell call or the targeted program? If the targeted program does it return an error level (you could test this with ERRORLEVEL in a batch file) ?
>
>I'm not sure how can I use ErrorLevel for something useful and do I have to create a bat file on the fly in order to ger ErrorLevel?

Create a batch file that calls the zip you want to do.
Force the zip to fail (give it a bad file, takeout floppy, etc.)
Type out the ERRORLEVEL and see if you get different results depending on the error or if it gives same result no matter what happens, even if successful.

maybe something like:
zipit filesource a:\target
@echo %ERRORLEVEL%
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform