Thread: BAD BAT
View Single Post
  #10  
Old November 14th 04, 09:15 AM
Pebble
external usenet poster
 
Posts: n/a
Default

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.