Boot to safe mode from Dos - ResellerRatings Store Ratings
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings, at ResellerRatings.com.
Comparison shop, read reviews, find savings.
What are you shopping for?
Digital Cameras Plasma and LCD
HDTv's iPods and Other
MP3 Players PC Laptops Camcorders

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-06-2002, 12:11 PM   #1 (permalink)
Registered User
 
korgul's Avatar
 
Join Date: Oct 2001
Location: York, PA.
Posts: 1,326
korgul is on a distinguished road
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

korgul is offline   Reply With Quote
Old 03-06-2002, 12:38 PM   #2 (permalink)
Registered User
 
BFlurie's Avatar
 
Join Date: Oct 2001
Location: Hagerstown, Maryland
Posts: 3,211
BFlurie is on a distinguished road
Tall order.
BFlurie is offline   Reply With Quote
Old 03-06-2002, 12:48 PM   #3 (permalink)
Registered User
 
korgul's Avatar
 
Join Date: Oct 2001
Location: York, PA.
Posts: 1,326
korgul is on a distinguished road
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
korgul is offline   Reply With Quote
Old 03-06-2002, 01:04 PM   #4 (permalink)
Registered User
 
korgul's Avatar
 
Join Date: Oct 2001
Location: York, PA.
Posts: 1,326
korgul is on a distinguished road
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
korgul is offline   Reply With Quote
Old 03-06-2002, 06:02 PM   #5 (permalink)
Registered User
 
BFlurie's Avatar
 
Join Date: Oct 2001
Location: Hagerstown, Maryland
Posts: 3,211
BFlurie is on a distinguished road
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).
BFlurie is offline   Reply With Quote
Old 03-06-2002, 06:09 PM   #6 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
I think it was win /d:m to start in Safe Mode.
DVNT1 is offline   Reply With Quote
Old 03-06-2002, 06:10 PM   #7 (permalink)
Registered User
 
korgul's Avatar
 
Join Date: Oct 2001
Location: York, PA.
Posts: 1,326
korgul is on a distinguished road
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
korgul is offline   Reply With Quote
Old 03-06-2002, 06:20 PM   #8 (permalink)
Registered User
 
awwall's Avatar
 
Join Date: Oct 2001
Location: Biloxi, Ms.
Posts: 564
awwall is on a distinguished road
Korgul, why you want it to start up in safe mode?

aw
__________________
-> AW <-
awwall is offline   Reply With Quote
Old 03-06-2002, 06:24 PM   #9 (permalink)
Registered User
 
korgul's Avatar
 
Join Date: Oct 2001
Location: York, PA.
Posts: 1,326
korgul is on a distinguished road
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
korgul is offline   Reply With Quote
Old 03-06-2002, 06:30 PM   #10 (permalink)
Registered User
 
Inanis's Avatar
 
Join Date: Oct 2001
Location: Mount Vernon, Ohio
Posts: 447
Inanis is on a distinguished road
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.
Inanis is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Most Active Discussions
Beware of used XBOX 360's (12)

Recent Discussions
Like New Wacom 12x19 Intuos 3 +.. (1)
For Sale BFG GTX285 OC2 with 10.. (2)
www.szprice.com - any experienc.. (1)
Games, Cables, PCI cards, and m.. (5)
Buymoreshopping.com? Wigix.com (3)
I want your old/new unused pc p.. (6)
:mad: Spam At-hon (3)
Fall-Winter Cleaning Sale (1)
DON'T BUY.COM Advisory (232)
Is certifiedwatchstore.com legi.. (1)
Beware of used XBOX 360's (12)
Cheap Used Computers (0)
Reputation: Establishing Trust .. (0)
Are the sites like this for rea.. (3)
LORIMER ELECTRONICS: REFURBISHE.. (3)

All times are GMT -6. The time now is 08:39 PM.