Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This one stumped me...
Message
From
12/01/2001 07:49:36
 
 
To
12/01/2001 01:04:24
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00462797
Message ID:
00462855
Views:
15
Hi Al

Put .BAT on the end so you can rule out any instances of unzip.com or unzip.exe running somewhere else in the path.





>I e-mailed a .ZIP file of FP tables etc. to a client. I also sent a batch file, UNZIP.BAT, which calls PKUNZIP to expand the contents to a certain folder. The client complained that when she double-clicked on UNZIP.BAT, it didn't run properly, reporting "Bad command or file name" instead.
>
>The batch file, if working properly, is supposed to display a title and copyright notice (via ECHO ...) and give the user a chance to continue or abort (via PAUSE), before trying to do anything else.
>
>I had the user copy the files to a diskette, and fire up a DOS box on her W98 machine. She logged into drive A: and ran the following commands:
A:\>dir
>  - contents of drive A: displayed, including UNZIP.BAT
>
>A:\>type unzip.bat
>  - contents of UNZIP.BAT displayed correctly on the screen
>
>A:\>unzip
>  - "Bad command or file name"
>
>A:\>unzip.bat
>  - "Bad command or file name"
The batch file title and copyright notice do not appear, it seems clear that her machine is not attempting to run the file at all.
>
>Ideas, anyone?
Previous
Reply
Map
View

Click here to load this message in the networking platform