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
  #11  
Old November 14th 04, 04:26 PM
Buffalo
external usenet poster
 
Posts: n/a
Default


"Pebble" wrote in message
...
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.
--
* * Pebble in Boulder * *

Why is it so? It's done the job for years.


No, pure (real) DOS is different. If that bat file worked fine in Restart in Dos
mode, then it is probably something else.
There are less programs, drivers, files, etc in use in pure DOS mode.
To get there, either hold or tap the Ctrl key during bootup until you get to the
StartUp Menu ( I incorrectly named it the Start Menu last time, sorry).
If you get to the line starting windows, you were too late and will have to try
again.
Another way to get to the StartUp Menu without worrying about the timing of the
Ctrl key tap, is to go into msconfig (Start, Run, type msconfig) and select the
Advanced tab and put a check in Enable Startup_Menu and OK out and reboot.
Once you are at the StartUp Menu, choose command prompt only and press Enter.
At the C:\ prompt, type clean and press Enter.
If your .bat now works, then perhaps it will give others more info on why it
won't work in Restart in MS-Dos mode.
To exit out of pure DOS, press Ctrl-Alt-Del.
If you changed msconfig, be sure to change it back when you select Windows in
the StartUp Menu.


  #12  
Old November 14th 04, 04:47 PM
Buffalo
external usenet poster
 
Posts: n/a
Default


"Pebble" wrote in message
...
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.
--
* * Pebble in Boulder * *

"Fred S" "Fred wrote in message
...
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.


If pure DOS doesn't work, try Bert Kinney's advice.
I would first try putting a rem in front of the smartdrv entry:
Ex: rem C:\windows\smartdrv.exe (leave a space between the rem and the C:\.)
See if the program now works. If it does, it narrows down the field to a bad
smartdrv file or path to it.
If not, I would put a rem in front of all the deltree entries and remove the
rem from the smartdrv.exe entry.
See if the program now works.If it does, it narrows down the field to a bad
deltree.exe or path to it.
If it still doesn't work, remove all the above rem and put one in front of
the del c:\WIN386.SWP entry.
PS: The autoexec.bat you were asking about is the one in C:\.


  #13  
Old November 14th 04, 10:19 PM
PCR
external usenet poster
 
Posts: n/a
Default

Before I forget, better also post "C:\CDINST.BAT". (R-Clk it, Edit, to
get at it.) That file also is executing upon "Restart in MS-DOS Mode",
because it is within your DOSStart.bat. "c:\mouse\mouse.exe" gives you a
DOS mouse. As far as "C:\SBPCI\SBINIT", looks like that is Sound
Blaster. If it's always been there, I guess it's OK.

You are welcome. Well, I'm not quite a perfect DOS expert, BUT...

Every DOS except Windows DOS (in a box) is Pure DOS. They all have the
same instruction set & can only do what DOS can do (as opposed to
Windows enhancements such as LFN [Long File Name] processing & better
file/partition accessing). However, they may differ in "environment",
which cquirke has often said & to which Buffalo may allude. Environment
can be altered three ways...

(a) By running a .bat such as DOSStart.bat to change variables, Paths &
load processes.
(b) By altering the "exit to DOS" pif.
(c) Possibly that 4K stub (mentioned below) of Windows makes a
difference. cquirke seems to believe so, but generally I do all my own
DOS in a normal "Restart in MS-DOS Mode" DOS.


http://support.microsoft.com/default...b;EN-US;151717
Can't EXIT MS-DOS Mode
http://support.microsoft.com/?kbid=130448
Can't QUIT MS-DOS Mode
http://support.microsoft.com/default...;EN-US;q138996
Description of Restarting Computer in MS-DOS Mode

"Windows 98 Secrets" (Livingston/Straub), pgs 1068,1099, explains:

1. Direct Boot to DOS (Cold booted DOS)

a. Accessed through Boot Menu item, "Command Prompt Only".
b. Windows is not started.
c. Config.sys & Autoexec.bat are run, if present.
d. Ctrl-Alt-Del boots Windows. "WIN" loads Windows.

2. "Quit" to DOS (Re-started MS-DOS mode)

a. Accessed from "START, Shut Down, Re-start in MS-DOS mode", unless
"exit to DOS" pif was converted to "Warm Boot".
b. Accessed from any .pif that ISN'T a "Warm Boot" pif, as described
below.
c. Is NOT a warm boot; Config.sys & Autoexec.bat are NOT re-run, but are
honored to the extent Windows has not mussed the environment they set.
d. Dosstart.bat is run, if present.
e. "EXIT" reloads Windows (from 4K stub), also without a boot.
Ctrl-Alt-Del boots Windows.

3. Warm Booted MS-DOS mode ("Re-boot" to DOS)

a. Accessed from a "Warm Boot" .pif that IS BOTH checked "MS-DOS mode"
AND bolted "Specify a new MS-DOS configuration", in it's Properties,
Program tab, Advanced button.
b. Accessed from START button, if you've altered "exit to dos", as
described.
c. Does a warm boot, using Config.sys and Autoexec.bat as configured in
the pif. (The system files are renamed *.wos & the pif files are
extracted for the session.)
d. Dosstart.bat is NOT run.
e. "EXIT" restores the system Config.sys & Autoexec.bat & warm boots to
Windows. (Ctrl-Alt-Del & "WIN" should NOT be used.)

If you don't want to modify the "exit to dos" pif so that it does a warm
boot, then create a pif this way:

1. "START, Find, Command.com". (Probably in C:\ & C:\Windows).
2. "R-Clk either, Send to, Desktop (create shortcut)". It will be named
"MS-DOS Prompt".
3. R-Clk "MS-DOS Prompt" on the Desktop, & select Properties.
4. Click the Program tab & then the Advanced button.
5. Mark the MS-DOS Mode check box. Mark "Warn before entering..." as
desired.
6. For a "Warm Boot to DOS" pif, mark the "Specify a New MS-DOS
Configuration" button. If you do not do that, you will have a "Quit to
DOS" pif.
7. OK you're way out.

When you click that pif, you will either "warm boot" or "quit to DOS",
depending on what you did in step 6. If it's a warm boot, then the
Config.sys & Autoexec.bat inside the pif are the ones that will be in
effect in your DOS session. Alter them inside the pif as desired, before
clicking it.

Cquirke's WARNING: Because of system/.pif file switching, give a Warm
Boot .pif a chance to execute after clicking. If you click it a second
time before getting to DOS, you may lose your system Config.sys &
Autoexec.bat files.

http://cquirke.mvps.org/9x/doscompat.htm
There are even more DOS mentioned there.

"Select MS-DOS mode on this page", said Leboeuf.
http://www.colba.net/~hlebo49/winmode.htm


--
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 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.
--
* * Pebble in Boulder * *

"Fred S" "Fred wrote in message
...
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.



  #14  
Old November 15th 04, 12:56 AM
Pebble
external usenet poster
 
Posts: n/a
Default

Thanks once again for all the opinions,

This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
As for all the other stuff PCR, wow that's a lot to swallow! Have saved =
it all and will try to figure out what it's all about. As I said, I =
don't like dabbling with the 'black screen' it's a bit too powerful and =
confusing for me. But, then again I used to have regophobia too, and =
that's gone now!
The SBPCI stuff is sound blaster, as for the mouse - do I really need it =
in DOS, I know how to navigate with the keys.

Buffalo advised:-
If pure DOS doesn't work, try Bert Kinney's advice.
I would first try putting a rem in front of the smartdrv entry:
Ex: rem C:\windows\smartdrv.exe (leave a space between the rem and the =
C:\.) ***(I DID THE SPACE)
See if the program now works. If it does, it narrows down the field to a =
bad smartdrv file or path to it.**********DOESN'T WORK
If not, I would put a rem in front of all the deltree entries**I DID =
REM-SPACE?- and remove the rem from the smartdrv.exe entry.
See if the program now works.If it does, it narrows down the field to a =
bad
deltree.exe or path to it.**************DOESN'T WORK
If it still doesn't work, remove all the above rem and put one in =
front of
the del c:\WIN386.SWP entry.***********DOESN'T WORK
PS: The autoexec.bat you were asking about is the one in C:\.***Thought =
so, thanks.
Didn't rem the last line, which is EXIT?
Thanks for your patience.

Original Clean.bat:-
********
c:\windows\smartdrv.exe
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
rem del c:\WIN386.SWP=20
exit=20
********
--=20
* * Pebble in Boulder * *



  #15  
Old November 15th 04, 02:19 AM
Pebble
external usenet poster
 
Posts: n/a
Default

EUREKA,
It still doesn't work from 'restart in dos mode' from the shutdown menu, =
but I enabled startup from msconfig, chose 'command prompt only' typed =
'clean' and it did!
Thank the gods for that, didn't want to go back to doing all that manual =
purging of temp files etc.
Good one Buffalo.
Would like to know why the 'restart in MS-DOS mode' doesn't work though, =
when it has done for so long, well it will 'restart in msdos' but the =
clean.bat still gives bad command or file name, haven't tried anything =
else from that restart. (Don't know what other commands to try)
--=20
* * Pebble in Boulder * *

"Pebble" wrote in message =
...
Thanks once again for all the opinions,

This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
As for all the other stuff PCR, wow that's a lot to swallow! Have saved =
it all and will try to figure out what it's all about. As I said, I =
don't like dabbling with the 'black screen' it's a bit too powerful and =
confusing for me. But, then again I used to have regophobia too, and =
that's gone now!
The SBPCI stuff is sound blaster, as for the mouse - do I really need it =
in DOS, I know how to navigate with the keys.

Buffalo advised:-
If pure DOS doesn't work, try Bert Kinney's advice.
I would first try putting a rem in front of the smartdrv entry:
Ex: rem C:\windows\smartdrv.exe (leave a space between the rem and the =
C:\.) ***(I DID THE SPACE)
See if the program now works. If it does, it narrows down the field to a =
bad smartdrv file or path to it.**********DOESN'T WORK
If not, I would put a rem in front of all the deltree entries**I DID =
REM-SPACE?- and remove the rem from the smartdrv.exe entry.
See if the program now works.If it does, it narrows down the field to a =
bad
deltree.exe or path to it.**************DOESN'T WORK
If it still doesn't work, remove all the above rem and put one in =
front of
the del c:\WIN386.SWP entry.***********DOESN'T WORK
PS: The autoexec.bat you were asking about is the one in C:\.***Thought =
so, thanks.
Didn't rem the last line, which is EXIT?
Thanks for your patience.

Original Clean.bat:-
********
c:\windows\smartdrv.exe
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
rem del c:\WIN386.SWP=20
exit=20
********
--=20
* * Pebble in Boulder * *



  #16  
Old November 15th 04, 06:22 AM
PCR
external usenet poster
 
Posts: n/a
Default

Yes, keep your DOS Mouse. Some day you may actually need it. Note, it
will only be loaded when you "Restart in MS-DOS Mode", anyway, as only
then will DOSStart.bat run on it's own.

As Clean.bat does work after a direct boot to DOS from the Startup Menu,
Config.sys & Autoexec.bat are fine. (I was about to ask to see them.)
Also, you have functioning DELTREE & Smartdrv commands. (I don't care
about that REM you may have left in front of DEL; it's an internal
command, part of Command.com the DOS Interpreter.)

Probably, something in those .bat's of yours is mussing the Path to the
external commands (the ones that are programs in C:\Windows\Command) or
to Clean.bat or CDINST.bat, themselves. Let me see whether I have
everything to look at, now...

This is my Dosstart.bat PCR
****
@ECHO OFF
CALL C:\CDINST.BAT Q
c:\mouse\mouse.exe
C:\SBPCI\SBINIT
********
Dosstart.bat doesn't change the Path itself, but it calls C\CDINST.bat
(using that one's Path explicitly). No problem in Dosstart.bat.

This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
I cannot figure what the purpose of C\CDINST.BAT is! It doesn't appear
to actually do a thing, except to run twice (calls itself after
Dosstart.bat called it) & fool with the Current Directory. You said
Clean.bat was located in C:\. If, after running C\CDINST.BAT, the
current directory is not C:\, then...

C:\DRIVERS\CDROM\Clean.bat
Bad command or file name

....it will itself be the "Bad command or file name". Also, it's possible
the external commands, such as Smartdrv, will try to execute out of
"C:\DRIVERS\CDROM", if you have older copies in there.

I would put a "REM " into DOSStart,bat, to read...
REM CALL C:\CDINST.BAT Q
....& try to run Clean.bat in "Restart in MS-DOS Mode" again.

If it STILL fails...
(a) What is the current directory?
That is, do you see "C:\" as the Prompt,
or something else such as "C:\DRIVERS\CDROM\"
(b) Type... PATH... & report what is the Path...
C:\PATH
PATH=C:\Windows;C:\Windows\Command


This is it. (The real original Clean.bat.)
******************
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


--
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
...
EUREKA,
It still doesn't work from 'restart in dos mode' from the shutdown menu,
but I enabled startup from msconfig, chose 'command prompt only' typed
'clean' and it did!
Thank the gods for that, didn't want to go back to doing all that manual
purging of temp files etc.
Good one Buffalo.
Would like to know why the 'restart in MS-DOS mode' doesn't work though,
when it has done for so long, well it will 'restart in msdos' but the
clean.bat still gives bad command or file name, haven't tried anything
else from that restart. (Don't know what other commands to try)
--
* * Pebble in Boulder * *

"Pebble" wrote in message
...
Thanks once again for all the opinions,

This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
As for all the other stuff PCR, wow that's a lot to swallow! Have saved
it all and will try to figure out what it's all about. As I said, I
don't like dabbling with the 'black screen' it's a bit too powerful and
confusing for me. But, then again I used to have regophobia too, and
that's gone now!
The SBPCI stuff is sound blaster, as for the mouse - do I really need it
in DOS, I know how to navigate with the keys.

Buffalo advised:-
If pure DOS doesn't work, try Bert Kinney's advice.
I would first try putting a rem in front of the smartdrv entry:
Ex: rem C:\windows\smartdrv.exe (leave a space between the rem and the
C:\.) ***(I DID THE SPACE)
See if the program now works. If it does, it narrows down the field to a
bad smartdrv file or path to it.**********DOESN'T WORK
If not, I would put a rem in front of all the deltree entries**I DID
REM-SPACE?- and remove the rem from the smartdrv.exe entry.
See if the program now works.If it does, it narrows down the field to a
bad
deltree.exe or path to it.**************DOESN'T WORK
If it still doesn't work, remove all the above rem and put one in
front of
the del c:\WIN386.SWP entry.***********DOESN'T WORK
PS: The autoexec.bat you were asking about is the one in C:\.***Thought
so, thanks.
Didn't rem the last line, which is EXIT?
Thanks for your patience.

Original Clean.bat:-
********
c:\windows\smartdrv.exe
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
rem del c:\WIN386.SWP
exit
********
--
* * Pebble in Boulder * *




  #17  
Old November 16th 04, 03:30 AM
barry martin
external usenet poster
 
Posts: n/a
Default

Pebble:


P clean.bat wrongly. As for "checking the path statement in AUTOEXEC.BAT" =
P which Autoexec.bat? I have 6. One in C/ - one in =

Sometimes what I do is add "flags" in batch files to see where I am:

Echo This is Point 1.
PAUSE

The screen will display "This is Point 1." to the screen and stop. To
continue hit the enter key. The message can be just about anything you
find makes sense to tell you where you are.

-
¯ barry.martinþATþthesafebbs.zeppole.com ®

* Bad Gift Ideas: "Laxatives-Of-The-World" gift set
---
þ RoseReader 2.52á P003186
þ The Safe BBS þ Bettendorf, IA 563-359-1971
---
þ RIMEGate(tm)/RGXMod V1.13 at BBSWORLD *
  #18  
Old November 18th 04, 01:37 AM
Pebble
external usenet poster
 
Posts: n/a
Default

Hi PCR,

I would put a "REM " into DOSStart,bat, to read...
REM CALL C:\CDINST.BAT Q
...& try to run Clean.bat in "Restart in MS-DOS Mode" again.

*********I did this PCR - no go!
If it STILL fails...
(a) What is the current directory?
That is, do you see "C:\" as the Prompt,
or something else such as "C:\DRIVERS\CDROM\"
(b) Type... PATH... & report what is the Path...

******Path=3DC\WINDOWS;c\windows;\windows\COMMAND- Seems to be an extra =
'c\windows?
If I put clean.bat into Windows folder, it runs from 'restart in MSDOS =
mode' If it is only in C, then it has to be from 'command prompt only' =
clean.bat has always been in C (it hasn't got the REM in front of Del =
swap file, that was a typo when I last posted the clean.bat)
I cannot figure what the purpose of C\CDINST.BAT is! It doesn't appear
to actually do a thing, except to run twice (calls itself after
Dosstart.bat called it) & fool with the Current Directory. You said
Clean.bat was located in C:\. If, after running C\CDINST.BAT, the
current directory is not C:\, then...

***********what does this bat do exactly?
Also, after trying to fix this problem with everybody's help, remming =
this and that, and trying to run bats from within windows shell, I now =
have quite a few undeletable files on C (system error 1026) with the =
generic windows icon - 0 bytes - a few numeric file names and a few with =
the same file name of _ no file extension! The new files with numeric =
names I did delete, one was 5kb which I opened in notepad just had rows =
and rows of 'bad command or file name.'
Thanks for your patience.
SHALL I SNIP ?
--=20
* * Pebble in Boulder * *
"PCR" wrote in message =
...
Yes, keep your DOS Mouse. Some day you may actually need it. Note, it
will only be loaded when you "Restart in MS-DOS Mode", anyway, as only
then will DOSStart.bat run on it's own.
=20
As Clean.bat does work after a direct boot to DOS from the Startup =

Menu,
Config.sys & Autoexec.bat are fine. (I was about to ask to see them.)
Also, you have functioning DELTREE & Smartdrv commands. (I don't care
about that REM you may have left in front of DEL; it's an internal
command, part of Command.com the DOS Interpreter.)
=20
Probably, something in those .bat's of yours is mussing the Path to =

the
external commands (the ones that are programs in C:\Windows\Command) =

or
to Clean.bat or CDINST.bat, themselves. Let me see whether I have
everything to look at, now...
=20
This is my Dosstart.bat PCR
****
@ECHO OFF
CALL C:\CDINST.BAT Q
c:\mouse\mouse.exe
C:\SBPCI\SBINIT
********
Dosstart.bat doesn't change the Path itself, but it calls C\CDINST.bat
(using that one's Path explicitly). No problem in Dosstart.bat.
=20
This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
I cannot figure what the purpose of C\CDINST.BAT is! It doesn't appear
to actually do a thing, except to run twice (calls itself after
Dosstart.bat called it) & fool with the Current Directory. You said
Clean.bat was located in C:\. If, after running C\CDINST.BAT, the
current directory is not C:\, then...
=20
C:\DRIVERS\CDROM\Clean.bat
Bad command or file name
=20
...it will itself be the "Bad command or file name". Also, it's =

possible
the external commands, such as Smartdrv, will try to execute out of
"C:\DRIVERS\CDROM", if you have older copies in there.
=20
I would put a "REM " into DOSStart,bat, to read...
REM CALL C:\CDINST.BAT Q
...& try to run Clean.bat in "Restart in MS-DOS Mode" again.
=20
If it STILL fails...
(a) What is the current directory?
That is, do you see "C:\" as the Prompt,
or something else such as "C:\DRIVERS\CDROM\"
(b) Type... PATH... & report what is the Path...
C:\PATH
PATH=3DC:\Windows;C:\Windows\Command
=20
=20
This is it. (The real original Clean.bat.)
******************
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
=20
--=20
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
...
EUREKA,
It still doesn't work from 'restart in dos mode' from the shutdown =

menu,
but I enabled startup from msconfig, chose 'command prompt only' typed
'clean' and it did!
Thank the gods for that, didn't want to go back to doing all that =

manual
purging of temp files etc.
Good one Buffalo.
Would like to know why the 'restart in MS-DOS mode' doesn't work =

though,
when it has done for so long, well it will 'restart in msdos' but the
clean.bat still gives bad command or file name, haven't tried anything
else from that restart. (Don't know what other commands to try)
--=20
* * Pebble in Boulder * *
=20
"Pebble" wrote in message
...
Thanks once again for all the opinions,
=20
This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
As for all the other stuff PCR, wow that's a lot to swallow! Have =

saved
it all and will try to figure out what it's all about. As I said, I
don't like dabbling with the 'black screen' it's a bit too powerful =

and
confusing for me. But, then again I used to have regophobia too, and
that's gone now!
The SBPCI stuff is sound blaster, as for the mouse - do I really need =

it
in DOS, I know how to navigate with the keys.
=20
Buffalo advised:-
If pure DOS doesn't work, try Bert Kinney's advice.
I would first try putting a rem in front of the smartdrv entry:
Ex: rem C:\windows\smartdrv.exe (leave a space between the rem and =

the
C:\.) ***(I DID THE SPACE)
See if the program now works. If it does, it narrows down the field to =

a
bad smartdrv file or path to it.**********DOESN'T WORK
If not, I would put a rem in front of all the deltree entries**I DID
REM-SPACE?- and remove the rem from the smartdrv.exe entry.
See if the program now works.If it does, it narrows down the field to =

a
bad
deltree.exe or path to it.**************DOESN'T WORK
If it still doesn't work, remove all the above rem and put one in
front of
the del c:\WIN386.SWP entry.***********DOESN'T WORK
PS: The autoexec.bat you were asking about is the one in =

C:\.***Thought
so, thanks.
Didn't rem the last line, which is EXIT?
Thanks for your patience.
=20
Original Clean.bat:-
********
c:\windows\smartdrv.exe
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
rem del c:\WIN386.SWP (No REM) it's a typo
exit
********
--=20
* * Pebble in Boulder * *
=20
=20
=20

"PCR" wrote in message =
...
Yes, keep your DOS Mouse. Some day you may actually need it. Note, it
will only be loaded when you "Restart in MS-DOS Mode", anyway, as only
then will DOSStart.bat run on it's own.
=20
As Clean.bat does work after a direct boot to DOS from the Startup =

Menu,
Config.sys & Autoexec.bat are fine. (I was about to ask to see them.)
Also, you have functioning DELTREE & Smartdrv commands. (I don't care
about that REM you may have left in front of DEL; it's an internal
command, part of Command.com the DOS Interpreter.)
=20
Probably, something in those .bat's of yours is mussing the Path to =

the
external commands (the ones that are programs in C:\Windows\Command) =

or
to Clean.bat or CDINST.bat, themselves. Let me see whether I have
everything to look at, now...
=20
This is my Dosstart.bat PCR
****
@ECHO OFF
CALL C:\CDINST.BAT Q
c:\mouse\mouse.exe
C:\SBPCI\SBINIT
********
Dosstart.bat doesn't change the Path itself, but it calls C\CDINST.bat
(using that one's Path explicitly). No problem in Dosstart.bat.
=20
This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
I cannot figure what the purpose of C\CDINST.BAT is! It doesn't appear
to actually do a thing, except to run twice (calls itself after
Dosstart.bat called it) & fool with the Current Directory. You said
Clean.bat was located in C:\. If, after running C\CDINST.BAT, the
current directory is not C:\, then...
=20
C:\DRIVERS\CDROM\Clean.bat
Bad command or file name
=20
...it will itself be the "Bad command or file name". Also, it's =

possible
the external commands, such as Smartdrv, will try to execute out of
"C:\DRIVERS\CDROM", if you have older copies in there.
=20
I would put a "REM " into DOSStart,bat, to read...
REM CALL C:\CDINST.BAT Q
...& try to run Clean.bat in "Restart in MS-DOS Mode" again.
=20
If it STILL fails...
(a) What is the current directory?
That is, do you see "C:\" as the Prompt,
or something else such as "C:\DRIVERS\CDROM\"
(b) Type... PATH... & report what is the Path...
C:\PATH
PATH=3DC:\Windows;C:\Windows\Command
=20
=20
This is it. (The real original Clean.bat.)
******************
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
=20
--=20
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
...
EUREKA,
It still doesn't work from 'restart in dos mode' from the shutdown =

menu,
but I enabled startup from msconfig, chose 'command prompt only' typed
'clean' and it did!
Thank the gods for that, didn't want to go back to doing all that =

manual
purging of temp files etc.
Good one Buffalo.
Would like to know why the 'restart in MS-DOS mode' doesn't work =

though,
when it has done for so long, well it will 'restart in msdos' but the
clean.bat still gives bad command or file name, haven't tried anything
else from that restart. (Don't know what other commands to try)
--=20
* * Pebble in Boulder * *
=20
"Pebble" wrote in message
...
Thanks once again for all the opinions,
=20
This is C\CDINST.BAT
****
@echo off
C:
CD \DRIVERS\CDROM
CALL CDINST.BAT %1 %2 %3
CD \
******
As for all the other stuff PCR, wow that's a lot to swallow! Have =

saved
it all and will try to figure out what it's all about. As I said, I
don't like dabbling with the 'black screen' it's a bit too powerful =

and
confusing for me. But, then again I used to have regophobia too, and
that's gone now!
The SBPCI stuff is sound blaster, as for the mouse - do I really need =

it
in DOS, I know how to navigate with the keys.
=20
Buffalo advised:-
If pure DOS doesn't work, try Bert Kinney's advice.
I would first try putting a rem in front of the smartdrv entry:
Ex: rem C:\windows\smartdrv.exe (leave a space between the rem and =

the
C:\.) ***(I DID THE SPACE)
See if the program now works. If it does, it narrows down the field to =

a
bad smartdrv file or path to it.**********DOESN'T WORK
If not, I would put a rem in front of all the deltree entries**I DID
REM-SPACE?- and remove the rem from the smartdrv.exe entry.
See if the program now works.If it does, it narrows down the field to =

a
bad
deltree.exe or path to it.**************DOESN'T WORK
If it still doesn't work, remove all the above rem and put one in
front of
the del c:\WIN386.SWP entry.***********DOESN'T WORK
PS: The autoexec.bat you were asking about is the one in =

C:\.***Thought
so, thanks.
Didn't rem the last line, which is EXIT?
Thanks for your patience.
=20
Original Clean.bat:-
********
c:\windows\smartdrv.exe
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
rem del c:\WIN386.SWP
exit
********
--=20
* * Pebble in Boulder * *
=20
=20
=20

  #19  
Old November 18th 04, 05:24 AM
PCR
external usenet poster
 
Posts: n/a
Default

I'll snip. Well, you forgot to answer...
(a) What is the Current Directory, when you "Restart in MS-DOS Mode"?
That is, do you see "C:\" as the DOS Prompt,
or something else such as "C:\Windows"

Since Clean.bat was not in the Path, it could only run if it were in the
Current Directory (or if you called it using it's full Path, i.e.,
"C:\Clean.bat"). You put it into the Path, when you moved it to
"C:\Windows"; so, it ran well.

Probably, it is better to move it to "C:\Windows\Command", though.

It will also execute from there, no matter what the Current Directory or
the Path is. And that is where DOS commands & .bat's belong.

| ***********what does this bat do exactly?

May as well leave that REM in front of "REM CALL C:\CDINST.BAT Q", in
DosStart.bat. It may have done something once, but it only plays with
the Current Directory (CD) now. Do you recall what the CD was when the
REM was not there? And don't forget to say what it is now/

| ******Path=C\WINDOWS;c\windows;\windows\COMMAND

I know how to fix that. Post your Config.sys & Autoexec.bat files. Take
them from "START, Run, SysEdit".

| I now have quite a few undeletable files on C (system error 1026)

Let me think about that. Are you sure they are files you can account
for? Are you up-to-date on virus scans? Let us see some this way...

"START, Programs, MS-DOS Prompt". Then,
(a) DIR C:
(b) Use the "Mark" button, outline with mouse, "Copy" & post for
inspection.

But don't post half a million of them!


--
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
...
Hi PCR,

I would put a "REM " into DOSStart,bat, to read...
REM CALL C:\CDINST.BAT Q
...& try to run Clean.bat in "Restart in MS-DOS Mode" again.

*********I did this PCR - no go!
If it STILL fails...
(a) What is the current directory?
That is, do you see "C:\" as the Prompt,
or something else such as "C:\DRIVERS\CDROM\"
(b) Type... PATH... & report what is the Path...

******Path=C\WINDOWS;c\windows;\windows\COMMAND- Seems to be an extra
'c\windows?
If I put clean.bat into Windows folder, it runs from 'restart in MSDOS
mode' If it is only in C, then it has to be from 'command prompt only'
clean.bat has always been in C (it hasn't got the REM in front of Del
swap file, that was a typo when I last posted the clean.bat)
I cannot figure what the purpose of C\CDINST.BAT is! It doesn't appear
to actually do a thing, except to run twice (calls itself after
Dosstart.bat called it) & fool with the Current Directory. You said
Clean.bat was located in C:\. If, after running C\CDINST.BAT, the
current directory is not C:\, then...

***********what does this bat do exactly?
Also, after trying to fix this problem with everybody's help, remming
this and that, and trying to run bats from within windows shell, I now
have quite a few undeletable files on C (system error 1026) with the
generic windows icon - 0 bytes - a few numeric file names and a few with
the same file name of _ no file extension! The new files with numeric
names I did delete, one was 5kb which I opened in notepad just had rows
and rows of 'bad command or file name.'
Thanks for your patience.
SHALL I SNIP ?
--
* * Pebble in Boulder * *
"PCR" wrote in message
...
....snip


  #20  
Old November 18th 04, 02:49 PM
Buffalo
external usenet poster
 
Posts: n/a
Default


"PCR" wrote in message
...
I'll snip. Well, you forgot to answer...
(a) What is the Current Directory, when you "Restart in MS-DOS Mode"?
That is, do you see "C:\" as the DOS Prompt,
or something else such as "C:\Windows"

Since Clean.bat was not in the Path, it could only run if it were in the
Current Directory (or if you called it using it's full Path, i.e.,
"C:\Clean.bat"). You put it into the Path, when you moved it to
"C:\Windows"; so, it ran well.

Probably, it is better to move it to "C:\Windows\Command", though.

It will also execute from there, no matter what the Current Directory or
the Path is. And that is where DOS commands & .bat's belong.

[snip]

That makes a lot of sense.
Pebble either had it open to C:\ or she would change it to that before typing
clean .
Good catch.


 




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 09:50 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.