K
Kenneth
Guest
Howdy,
I have been trying to create a batch file that will start
with my system in Normal Mode, boot it into Safe Mode with
Net, run two programs, and finally boot the system into
Normal Mode once again.
With some help, I have gotten this far:
@echo off
if exist c:\safemode (
del c:\safemode
attrib -r -a -s -h c:\boot.ini
start /wait "" "C:\Program Files\Corel\WordPerfect Office
2000\programs\pdxwin32.exe" -W D:\Contacts D:\ contacts.fsl
start /wait "" "C:\Program Files\ContactGenie
Importer\CGImprtr.exe"
/TM=Contacts-3;/FL=D:\Contacts\contacts.txt;/PC=Y;/RQ=N
copy /y c:\boot.NORM c:\boot.ini
shutdown -r -t 00
) else (
echo XP boot in safe mode >c:\safemode
attrib -r -a -s -h c:\boot.ini
copy /y c:\boot.SAFE c:\boot.ini
shutdown -r -t 00
)
and it runs properly, but with lots of intervention:
I launch the batch file from a shortcut.
Then, I have to:
click on my username
enter my password
click to clear the Safe Mode description
launch the shortcut
click on my username
enter my password
Is there a way to incorporate all that into the batch file
so that it would run to completion without further
intervention?
Thanks for any help on this,
--
Kenneth
If you email... Please remove the "SPAMLESS."
I have been trying to create a batch file that will start
with my system in Normal Mode, boot it into Safe Mode with
Net, run two programs, and finally boot the system into
Normal Mode once again.
With some help, I have gotten this far:
@echo off
if exist c:\safemode (
del c:\safemode
attrib -r -a -s -h c:\boot.ini
start /wait "" "C:\Program Files\Corel\WordPerfect Office
2000\programs\pdxwin32.exe" -W D:\Contacts D:\ contacts.fsl
start /wait "" "C:\Program Files\ContactGenie
Importer\CGImprtr.exe"
/TM=Contacts-3;/FL=D:\Contacts\contacts.txt;/PC=Y;/RQ=N
copy /y c:\boot.NORM c:\boot.ini
shutdown -r -t 00
) else (
echo XP boot in safe mode >c:\safemode
attrib -r -a -s -h c:\boot.ini
copy /y c:\boot.SAFE c:\boot.ini
shutdown -r -t 00
)
and it runs properly, but with lots of intervention:
I launch the batch file from a shortcut.
Then, I have to:
click on my username
enter my password
click to clear the Safe Mode description
launch the shortcut
click on my username
enter my password
Is there a way to incorporate all that into the batch file
so that it would run to completion without further
intervention?
Thanks for any help on this,
--
Kenneth
If you email... Please remove the "SPAMLESS."