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

.bat file error on Win 98 when files moved to W2K server

Status
Not open for further replies.

joegz

IS-IT--Management
Oct 10, 2001
1,533
US
We have employees who use batch files to run some particular jobs. The batch files have always been located on their group drive. The group drive was recently moved from an NT 4.0 server to a W2K server and since the move the batch files don't work when executed from the saved location on the group drive on Windows 98 machines. The error returned is "Bad command or filename" and it seems to be an issue with interpreting the long file name. If you use the 8.3 naming convention they work on Win 98.

The files will execute correctly from a Windows NT or W2K workstation. And here is what is interensting to me, the will also work if you copy the batch file to the Desktop of the Windows 98 machine and run it from there. They just don't work from the saved location on the W2K server for Win 98.

Can anyone provide me with a clue as to why this could possibly be happening.

The batch file themselves are not that big of a deal, just a few CD and CALL statements.

Thanks in advance.
 
OK...This is what is contained in the batch file.

CD "Q:\DTDEPT\GLOBALS\FSA 4\West Palm Beach 1"
CALL "Q:\DTDEPT\GLOBALS\GenAllFiles.bat"
DEL Q:FSA*.EXC
COPY Q:TXT\COMBINE.EXC Q:"FSA 4 West Palm Beach 1.EXC"
 
On the last line you have the quote marks after the drive letter...this is a possible issue if the result is evaluated as a long file name or file name with spaces in this case...try dir /x to see the short file name that may be a safer option in case using the long file is causing problems.

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top