A Windows 98 & ME forum. Win98banter

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.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

BAD BAT



 
 
Thread Tools Display Modes
  #1  
Old November 13th 04, 11:17 AM
Pebble
external usenet poster
 
Posts: n/a
Default 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  
Old November 13th 04, 11:59 AM
Ingeborg
external usenet poster
 
Posts: n/a
Default

"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  
Old November 13th 04, 01:20 PM
Bert Kinney
external usenet poster
 
Posts: n/a
Default

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  
Old November 13th 04, 03:41 PM
Pebble
external usenet poster
 
Posts: n/a
Default

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  
Old November 13th 04, 05:16 PM
Ingeborg
external usenet poster
 
Posts: n/a
Default

"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  
Old November 13th 04, 05:58 PM
Buffalo
external usenet poster
 
Posts: n/a
Default


"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  
Old November 13th 04, 07:17 PM
Fred S
external usenet poster
 
Posts: n/a
Default

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  
Old November 13th 04, 07:27 PM
Bert Kinney
external usenet poster
 
Posts: n/a
Default

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



  #9  
Old November 14th 04, 03:58 AM
PCR
external usenet poster
 
Posts: n/a
Default

Looks like you tried to click that .bat in Windows, instead of what you
wrote in the original post... "Restart in MS-DOS Mode".

(1) Don't try to do those Deltrees in Windows. The files are/may be in
use.
(2) deltree /y c:\windows\temp
THAT one should only be done upon "Restart in MS-DOS Mode". This
means you have already boot to Windows, so that anything inside TEMP
waiting for a reboot to Windows to execute has done so.
(3) "START, Find, F/F, DOSStart.bat".
Don't click it (it will execute). R-Clk it instead, & select
"Edit". Post it. This file executes upon "Restart in MS-DOS Mode" in
normal circumstances. Could be something in there got mussed.

NOTE: DELTREE is a powerful command.
"DELTREE C:\Windows" would wipe out Windows.

--
Thanks or Good Luck,
There may be humor in this post, and,
Naturally, you will not sue,
should things get worse after this,
PCR

"Pebble" wrote in message
...
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 in message
...
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  
Old November 14th 04, 10: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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.