Question

Locked

Unlock Windows with Bat File

By kmooney3 ·
Is there a way to unlock windows 2000 when a bat file runs at a scheduled time?

This conversation is currently closed to new comments.

10 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

None that I know of...

by cmiller5400 In reply to Unlock Windows with Bat F ...

Why do you want to unlock the machine? Is there something failing in the bat file?

Collapse -

re:

by kmooney3 In reply to None that I know of...

its not the bat file that fails, but an error comes up when access starts and tries to run reports. The errors says basically that it won't allow the macro or docmd to run while the database loads.

Collapse -

Ignore

by Jacky Howe In reply to re:

not enough caffeine.

Collapse -

Re: Unlock Windows with Bat File

You can try this out. :)

batch file that is like a computer password

we now have a batch that is like a computer password, maybe you could stick it in autoexec.exe and make it run at startup?

@Echo off
echo Enter password then [F6] and then smack the [Enter] key real hard!
prompt $e[30m
echo on
echo off
copy con password.dat>nul
prompt $e[0m
echo on
echo off
cls
copy password.set+password.dat password.bat>nul
call password.bat
if '%password%==qwerty goto done
echo Incorrect, you are not trying to break into my pc are you?
choice /t:y,3
if errorlevel 2 goto next
:next
erase password.bat
erase password.dat
:hello
cls
echo Turn off PC
goto hello
:done
erase password.dat
erase password.bat
set password=qwerty
prompt $p$g

Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.

Collapse -

re:

by kmooney3 In reply to Re: Unlock Windows with B ...

The computer needs to stay on, so this needs to unlock the computer, and then run the bat file which opens access and runs reports, I think the problem arises because in the vb code for logging into the system in access i simulate a click command which i think needs to have the computer unlocked in order to run. Does this make sense? thanks.

Collapse -

It could be permisions

by Jacky Howe In reply to Unlock Windows with Bat F ...

Make sure that you choose a user with sufficient permissions to run the program. By default, the wizard selects the name of the user who is currently logged on. Create a user with Administrative privelages EG: <b>tsched</b> and use that account to run the task.

<br><br>
<i>Keep us informed as to your progress if you require further assistance.</i>
<br><br>
<i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
</i>

Collapse -

would this require domain access?

by kmooney3 In reply to It could be permisions

Hello,

I can't create users on the domain, would this matter?

Collapse -

If you

by Jacky Howe In reply to would this require domain ...

haven't got admin permissions why are you attempting this task. Are you trying to write back to a file server. Try start /wait
<br>
http://www.tek-tips.com/faqs.cfm?fid=5099
<br><br>
<i>Keep us informed as to your progress if you require further assistance.</i>
<br><br>
<i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
</i>

Collapse -

re:

by kmooney3 In reply to If you

i don't have admin rights on the domain because i'm consulting for another company. however, i do have admin right on this computer. the bat file works without a problem, i believe now that there is an issue with the access macro. Is there a way to delay the running of a macro until the load process is complete?

Collapse -

Getting out of my depth here

by Jacky Howe In reply to re:

as I have never had to automate access reports. You may have to have a play with the batch file. /x macro Starts Access and runs the specified macro. Another way to run a macro when you open a database is to use an AutoExec macro.
<br><br>
<i>Keep us informed as to your progress if you require further assistance.</i>
<br><br>
<i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
</i>

Back to Software Forum
10 total posts (Page 1 of 1)  

Related Discussions

Related Forums