Batch needs lots of intervention...?

K

Kenneth

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,
 
P

Pegasus \(MVP\)

Kenneth said:
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,

Check this link about your first automatic logon:
http://www.wikihow.com/Enable-Automatic-Logon-in-Windows-XP.

About the second automatic logon: This appears to be a property of
pdxwin32.exe or of CGImprtr.exe, hence you should consult the manual for
these products.
 
K

Kenneth

Check this link about your first automatic logon:
http://www.wikihow.com/Enable-Automatic-Logon-in-Windows-XP.

About the second automatic logon: This appears to be a property of
pdxwin32.exe or of CGImprtr.exe, hence you should consult the manual for
these products.

Hi again,

Of course, I will study the link, but both logon requests
are Windows Logons.

The first occurs when it boots into Safe Mode, and the
second occurs when it boots back into Normal Mode.

I may be missing something (plenty) but neither seems
related to Paradox, or Contact Genie.

All the best,
 
K

Kenneth

Check this link about your first automatic logon:
http://www.wikihow.com/Enable-Automatic-Logon-in-Windows-XP.

About the second automatic logon: This appears to be a property of
pdxwin32.exe or of CGImprtr.exe, hence you should consult the manual for
these products.

Hi again,

I just reviewed the link you suggested, but it is about how
to set up the system for automatic logon.

I need to have the system password protected, and so, would
not want to set my system up to boot with an automatic
logon.

I was hoping to incorporate something in the batch file to
(as you said in an earlier post) "force" a logon.

Thanks for any further help,
 
P

Pegasus \(MVP\)

Kenneth said:
Hi again,

I just reviewed the link you suggested, but it is about how
to set up the system for automatic logon.

I need to have the system password protected, and so, would
not want to set my system up to boot with an automatic
logon.

I was hoping to incorporate something in the batch file to
(as you said in an earlier post) "force" a logon.

Thanks for any further help,

I don't think that you can do this with a batch file. Even if you could it
would run contrary to your requirement of having the system password
protected. Putting a password into a batch file is almost the same as
writing it on a post-it note stuck to the screen.
 
K

Kenneth

I don't think that you can do this with a batch file. Even if you could it
would run contrary to your requirement of having the system password
protected. Putting a password into a batch file is almost the same as
writing it on a post-it note stuck to the screen.

Well, I thank you for your kind help in any case,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top