If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
BAD BAT
Hi all,
Have been running a bat file to clean temp files etc. Restart in = msdos-at the command-type clean-enter-and it does it's job. Today it = wouldn't work - bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp=20 deltree /y c:\windows\tmp=20 deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies=20 deltree /y c:\windows\recent=20 deltree /y c:\windows\spool\printers=20 del c:\WIN386.SWP=20 exit=20 ******************* Why is it so? It's done the job for years. --=20 * * Pebble in Boulder * * --=20 Name: MULTIMEDIA 800AU* Microprocessor: Intel Pentium Ill 800MHz RAM: 64MB Video Memory: 8MB (VooDoo 3 2000) Hard Disk: 20GB Operating System: Windows '98 SE OE v 5.50.4807.1700 |
#2
|
|||
|
|||
"Pebble" wrote in
: Hi all, Have been running a bat file to clean temp files etc. Restart in msdos-at the command-type clean-enter-and it does it's job. Today it wouldn't work - bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP exit ******************* Why is it so? It's done the job for years. Your smartdrv.exe or deltree.exe is corrupt or gone, or C:\windows\command is no longer in the PATH. (Deltree is found there). |
#3
|
|||
|
|||
Hi Pebble,
Put a REM with a space after it in front of each line one at a time and run the bat file. The REM will remark out the line and cause it not to execute. This will tell you which command is at fault. Example: REM deltree /y c:\windows\tempor~1 -- Regards, Bert Kinney [MS-MVP DTS] http://dts-l.org/ "Pebble" wrote Hi all, Have been running a bat file to clean temp files etc. Restart in msdos-at the command-type clean-enter-and it does it's job. Today it wouldn't work - bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP exit ******************* Why is it so? It's done the job for years. -- * * Pebble in Boulder * * -- Name: MULTIMEDIA 800AU* Microprocessor: Intel Pentium Ill 800MHz RAM: 64MB Video Memory: 8MB (VooDoo 3 2000) Hard Disk: 20GB Operating System: Windows '98 SE OE v 5.50.4807.1700 |
#4
|
|||
|
|||
Thanks Bert and Ingeborg,
It would seem I have to load smartdrv.exe. Error reads "cannot load = smartdrve when shell programme (such as MSDOS shell) or Windows is = running. Quit windows or the shell and then load smartdrv." I'm not = sure how to load this file. I have smartdrv.exe (3 of them) in Windows, = Windows/Command and Windows /Drivers-this one is an older version. = Deltree.exe only in Windows/Command. I'm not sure about working in = MSDOS, only ever worked with the clean.bat file in there!!? I know how = to grab a version of missing files from the cabs. Is this necessary? --=20 * * Pebble in Boulder * *=20 "Bert Kinney" wrote in message = ... Hi Pebble, =20 Put a REM with a space after it in front of each line one at a time and run the bat file. The REM will remark out the line and cause it not to execute. This will tell you which command is at fault. =20 Example: =20 REM deltree /y c:\windows\tempor~1 =20 --=20 Regards, Bert Kinney [MS-MVP DTS] http://dts-l.org/ =20 "Pebble" wrote Hi all, Have been running a bat file to clean temp files etc. Restart in = msdos-at=20 the command-type clean-enter-and it does it's job. Today it wouldn't = work -=20 bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP exit =20 ******************* Why is it so? It's done the job for years. --=20 * * Pebble in Boulder * * --=20 =20 Name: MULTIMEDIA 800AU* Microprocessor: Intel Pentium Ill 800MHz RAM: 64MB Video Memory: 8MB (VooDoo 3 2000) Hard Disk: 20GB Operating System: Windows '98 SE OE v 5.50.4807.1700=20 =20 |
#5
|
|||
|
|||
"Pebble" wrote in
: Thanks Bert and Ingeborg, It would seem I have to load smartdrv.exe. Error reads "cannot load smartdrve when shell programme (such as MSDOS shell) or Windows is running. Quit windows or the shell and then load smartdrv." I'm not sure how to load this file. I have smartdrv.exe (3 of them) in Windows, Windows/Command and Windows /Drivers-this one is an older version. Deltree.exe only in Windows/Command. I'm not sure about working in MSDOS, only ever worked with the clean.bat file in there!!? I know how to grab a version of missing files from the cabs. Is this necessary? Smartdrv is not nessesary in a dos box in windows. |
#6
|
|||
|
|||
"Pebble" wrote in message ... Hi all, Have been running a bat file to clean temp files etc. Restart in msdos-at the command-type clean-enter-and it does it's job. Today it wouldn't work - bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP exit ******************* Why is it so? It's done the job for years. -- * * Pebble in Boulder * * -- Name: MULTIMEDIA 800AU* Microprocessor: Intel Pentium Ill 800MHz RAM: 64MB Video Memory: 8MB (VooDoo 3 2000) Hard Disk: 20GB Operating System: Windows '98 SE OE v 5.50.4807.1700 You should be running that .bat file in pure DOS. At the StartMenu, choose 'command prompt only' and then it should work just fine. |
#7
|
|||
|
|||
Buffalo
Sounds like either the batch file has a different name, or is in a different folder (directory) from before. Here's a standard description of that error message: "You tried to execute a DOS command that was not recognized or found by the system. The most common cause of this problem is simply misspelling the command you tried to type. Otherwise, you could be trying to run a program that doesn't exist on the system, or from the wrong floppy disk. You might also have a problem with the PATH statement in your AUTOEXEC.BAT file. The PATH statement specifies which directories the system should automatically search for programs that you run." Check your path statement in autoexec.bat for any changes. Be sure you are in the correct folder when you run it. Let us know what you find. Fred Buffalo wrote: "Pebble" wrote in message ... Hi all, Have been running a bat file to clean temp files etc. Restart in msdos-at the command-type clean-enter-and it does it's job. Today it wouldn't work - bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP exit ******************* Why is it so? It's done the job for years. |
#8
|
|||
|
|||
Hi Pebble,
Smartdrv.exe will help speed the process up at the command prompt but is not necessary. Use System File Checker to extract a fresh copy from the Win98 CD and place it in the C:\Windows folder. Boot to the command prompt and retry the bat file. -- Regards, Bert Kinney [MS-MVP DTS] http://dts-l.org/ "Pebble" wrote Thanks Bert and Ingeborg, It would seem I have to load smartdrv.exe. Error reads "cannot load smartdrve when shell programme (such as MSDOS shell) or Windows is running. Quit windows or the shell and then load smartdrv." I'm not sure how to load this file. I have smartdrv.exe (3 of them) in Windows, Windows/Command and Windows /Drivers-this one is an older version. Deltree.exe only in Windows/Command. I'm not sure about working in MSDOS, only ever worked with the clean.bat file in there!!? I know how to grab a version of missing files from the cabs. Is this necessary? -- * * Pebble in Boulder * * "Bert Kinney" wrote Hi Pebble, Put a REM with a space after it in front of each line one at a time and run the bat file. The REM will remark out the line and cause it not to execute. This will tell you which command is at fault. Example: REM deltree /y c:\windows\tempor~1 -- Regards, Bert Kinney [MS-MVP DTS] http://dts-l.org/ "Pebble" wrote Hi all, Have been running a bat file to clean temp files etc. Restart in msdos-at the command-type clean-enter-and it does it's job. Today it wouldn't work - bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP exit ******************* Why is it so? It's done the job for years. -- * * Pebble in Boulder * * -- Name: MULTIMEDIA 800AU* Microprocessor: Intel Pentium Ill 800MHz RAM: 64MB Video Memory: 8MB (VooDoo 3 2000) Hard Disk: 20GB Operating System: Windows '98 SE OE v 5.50.4807.1700 |
#10
|
|||
|
|||
Thanks guys,
So, I have extracted a new copy of Smartdrv.exe and put in windows = folder a new copy of Deltree.exe is in windows/command. I realise the = error "can't load Smartdrv.exe when windows or msdos shell is running" = is because I was trying to load it whilst in windows when trying to = troubleshoot. I only ever run it normally from restart in msdos The file clean.bat is in the C where it should be, am not typing = clean.bat wrongly. As for "checking the path statement in AUTOEXEC.BAT" = which Autoexec.bat? I have 6. One in C/ - one in = C/Drivers/MCDBF/Source1 - one in C/Drivers/system - two in programme = files (powerquest/drive image rescue and VFD set up and also one in = C/Failsafe drive. I guess the one to check is in C/? This is my Dosstart.bat PCR **** @ECHO OFF CALL C:\CDINST.BAT Q c:\mouse\mouse.exe C:\SBPCI\SBINIT ******** Is restart in MSDOS pure DOS? I don't have 'command prompt only' on the = start menu. --=20 * * Pebble in Boulder * * "Fred S" "Fred wrote in message = ... Buffalo =20 Sounds like either the batch file has a different name, or is in a=20 different folder (directory) from before. =20 Here's a standard description of that error message: =20 "You tried to execute a DOS command that was not recognized or found = by=20 the system. The most common cause of this problem is simply = misspelling=20 the command you tried to type. Otherwise, you could be trying to run a = program that doesn't exist on the system, or from the wrong floppy = disk.=20 You might also have a problem with the PATH statement in your=20 AUTOEXEC.BAT file. The PATH statement specifies which directories the=20 system should automatically search for programs that you run." =20 Check your path statement in autoexec.bat for any changes. Be sure you = are in the correct folder when you run it. =20 Let us know what you find. =20 Fred =20 =20 Buffalo wrote: "Pebble" wrote in message ... Hi all, Have been running a bat file to clean temp files etc. Restart in = msdos-at the command-type clean-enter-and it does it's job. Today it wouldn't = work - bad command or file name - This is it. ****************** c:\windows\smartdrv.exe deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP exit =20 ******************* Why is it so? It's done the job for years. |
Thread Tools | |
Display Modes | |
|
|