Batch needs lots of intervention...?

  • Thread starter Thread starter Kenneth
  • Start date Start date
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."
 
Re: Batch needs lots of intervention...?


"Kenneth" <usenet@soleSPAMLESSassociates.com> wrote in message
news:bu6fe4he7ioql81lvcahpl40ln4qlbcjbm@4ax.com...
>
>
> 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."


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.
 
Re: Batch needs lots of intervention...?

On Sat, 4 Oct 2008 19:00:57 +0200, "Pegasus \(MVP\)"
<I.can@fly.com.oz> wrote:

>
>"Kenneth" <usenet@soleSPAMLESSassociates.com> wrote in message
>news:bu6fe4he7ioql81lvcahpl40ln4qlbcjbm@4ax.com...
>>
>>
>> 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."

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

If you email... Please remove the "SPAMLESS."
 
Re: Batch needs lots of intervention...?

On Sat, 4 Oct 2008 19:00:57 +0200, "Pegasus \(MVP\)"
<I.can@fly.com.oz> wrote:

>
>"Kenneth" <usenet@soleSPAMLESSassociates.com> wrote in message
>news:bu6fe4he7ioql81lvcahpl40ln4qlbcjbm@4ax.com...
>>
>>
>> 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."

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

If you email... Please remove the "SPAMLESS."
 
Re: Batch needs lots of intervention...?


"Kenneth" <usenet@soleSPAMLESSassociates.com> wrote in message
news:b5cfe4tncvek0699dhkpdnib719r9913r1@4ax.com...
> On Sat, 4 Oct 2008 19:00:57 +0200, "Pegasus \(MVP\)"
> <I.can@fly.com.oz> wrote:
>
>>
>>"Kenneth" <usenet@soleSPAMLESSassociates.com> wrote in message
>>news:bu6fe4he7ioql81lvcahpl40ln4qlbcjbm@4ax.com...
>>>
>>>
>>> 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."

>>
>>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,
> --
> Kenneth
>
> If you email... Please remove the "SPAMLESS."


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.
 
Re: Batch needs lots of intervention...?

On Sat, 4 Oct 2008 21:07:56 +0200, "Pegasus \(MVP\)"
<I.can@fly.com.oz> wrote:
>
>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,
--
Kenneth

If you email... Please remove the "SPAMLESS."
 
Back
Top