 | |
03-06-2002, 12:11 PM
|
#1 (permalink)
| | Registered User
Join Date: Oct 2001 Location: York, PA.
Posts: 1,326
| » 
Boot to safe mode from Dos
Is there a way to boot to safe mode from dos. I want to be able to boot to dos with a boot disk. Run a couple of commands then boot to safemode. All of this is to be unattended.
A little more detail
Boot to dos with a boot disk
Run a batch file that will delete the swap file.
Copy the defrag comand to the startup folder
Then reboot into safe mode and run defrag.
If possible I want to try and get the computer to boot to regular windows or shutdown.
I will be at the machine for the first boot. After it deltes the swap file and copies the files needed to the startup. I will take the disk to the next machine.
Thanks
korgul
|
| |
03-06-2002, 12:38 PM
|
#2 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Hagerstown, Maryland
Posts: 3,211
|
Tall order. |
| |
03-06-2002, 12:48 PM
|
#3 (permalink)
| | Registered User
Join Date: Oct 2001 Location: York, PA.
Posts: 1,326
|
I can get most of this to work except for the booting to safemode.
I get an error message that says:
VFAT device installation failed
A device or resource requiredby VFAT is not present
or is unavailable. VFAT cannot continue loading
System Halted
|
| |
03-06-2002, 01:04 PM
|
#4 (permalink)
| | Registered User
Join Date: Oct 2001 Location: York, PA.
Posts: 1,326
|
Found it,there was an error in th e config.sys file
I had to enter in the line:
device=c:\windows\ifshlp.sys
korgul
|
| |
03-06-2002, 06:02 PM
|
#5 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Hagerstown, Maryland
Posts: 3,211
|
Does your method do what you want now? A solution has several uncertainties as I can see. But, you can designate Safe Mode as the default boot selection in Msdos.sys w/
BootMenuDefault=x
under the [Options] section, and x being the # selection for Safe Mode in the Menu (I forget what it is).
|
| |
03-06-2002, 06:09 PM
|
#6 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Ohio
Posts: 5,577
|
I think it was win /d:m to start in Safe Mode.
|
| |
03-06-2002, 06:10 PM
|
#7 (permalink)
| | Registered User
Join Date: Oct 2001 Location: York, PA.
Posts: 1,326
|
Bflurie
This is what I have so far. I have 3 batch files on a boot disk.
<Autoexec.bat>
del c:\windows\win386.swp
copy a:\swap.bat c:\windows\startm~1\programs\startup
win /D:M
<swap.bat>
defrag.exe /all /noprompt
a:\delswap.bat
<delswap.bat>
del c:\windows\startm~1\programs\startup\swap.bat
The only problem is that when windows boots into safe mode it does not process the startup files. So this means that the swap.bat file does not run.
Still stuck
korgul
|
| |
03-06-2002, 06:20 PM
|
#8 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Biloxi, Ms.
Posts: 564
|
Korgul, why you want it to start up in safe mode?
aw
__________________
-> AW <-
|
| |
03-06-2002, 06:24 PM
|
#9 (permalink)
| | Registered User
Join Date: Oct 2001 Location: York, PA.
Posts: 1,326
|
The defrag program will run faster since all of the drivers and other programs will not be loaded.
Thinking about the task ahead. This is what I need to do
Turn virtual memory off
boot to DOS and delete the swap file
boot to safe mode and defrag
turn virtual memory back on
boot to normal windows
korgul
|
| |
03-06-2002, 06:30 PM
|
#10 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Mount Vernon, Ohio
Posts: 447
|
You have to tell windows to start that batch file after windows starts. The only way to do that is to put a reference to it in the win.ini file, in the registry, or put it ( or a shortcut to it ) in the windows\start menu\programs\startup folder.
You cant make windows in safe mode run stuff from those places in that manner.
I think you are kinda stuck.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions  | | | | | Recent Discussions  | | | | | |