Computing.Net > Forums > Windows Vista > Batch file questions

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file questions

Reply to Message Icon

Name: yoseph
Date: July 30, 2009 at 14:56:20 Pacific
OS: Windows Vista Home Basic SP1
Subcategory: General
Comment:

relevant system info: windows vista home basic sp1

What I want to do may be too much for batch files and may need something more powerful.

What I am attempting to do:
When a specific user is logged in have one screen resolution, and when the user is logged off or switched to change to another resolution.

additionally when the user is loaded when it has already been logged in to run the .bat.

now i have found an app that works to change the screen resolution in a bat file qres (http://sourceforge.net/projects/qres/)
and I have made 3 .bat files
one that changes my resolution on startup.
two to change my resolution and log me off
and three to change my resolution and take me to the usr lock screen. (shortcut= %windir%\System32\rundll32.exe user32.dll,LockWorkStation)

i think this can be simplified.

question one:
the lock screen is ok... but i want it to go to the usr log in screen. i have no tsdiscon.exe
and when i got one and put it in the system32 folder it wasnt compatible with the system. is there another way to do this?

question two:
is there a way to run a .bat on usr logon not usr startup. ie... then loading my programs and settings that were running when i switched a usr to also run a .bat.

question three:
is there a way to run a script when switching users as well as when logging off?

thanks in advance for the help!
all posts welcome...



Sponsored Link
Ads by Google

Response Number 1
Name: guapo
Date: July 30, 2009 at 16:36:40 Pacific
Reply:

If you want something more powerful than batch files for Vista, download powershell. It's free from MS & you can do a lot more scripting with it.

How do you know when a politician is lying? His mouth is moving.


0

Response Number 2
Name: yoseph
Date: July 30, 2009 at 19:50:01 Pacific
Reply:

Thank you for the reply.

powershell is a much more powerful scripting tool. but i dont see how this has answered any of my questions. I have spent the last few hours reading the documentation, and manuals... And unless I am missing something this is not what I need.

I am attempting to have as little user interaction in this process as possible and what I have works it requires the user to run a script to log off or switch users... and another script when loging that user again (assuming that the user didnt log out)


0

Response Number 3
Name: guapo
Date: July 31, 2009 at 04:55:45 Pacific
Reply:

I think you would have a better chance of getting all the scripts you want in a programming forum, particularly one where VB is discussed.

How do you know when a politician is lying? His mouth is moving.


0

Response Number 4
Name: yoseph
Date: July 31, 2009 at 09:20:26 Pacific
Reply:

Thank yo again for the reply.

the .bat files that i have made work. With the exception of the one to take me to the switch user screen. That is not the issue.

Maybe I was not very clear. And I have been thinking of what I want and I may have a better way to ask the question.

What file is called to bring up user settings? such as desktop.ini ect... and can this run a .bat?

I dont think a programing forum is what is needed. I dont think a program running in the background while the user is logged in is the answer. I could be wrong, But I think there is a better answer.

I hope it can be answered here... If not thanks for the help.


0

Response Number 5
Name: guapo
Date: July 31, 2009 at 10:48:44 Pacific
Reply:

As far as I know the file that holds the user settings is either user.dat or ntuser.dat

The system runs a .bat file at a time you specify & exits on completion. The same goes for a vb script. Some people prefer a vb script, which is why I mentioned it. No matter what, it's all based on programming or scripting.

There is a scripting forum at http://www.minasi.com/forum/forum.a...

I think you'll get a better answer there.

How do you know when a politician is lying? His mouth is moving.


0

Related Posts

See More



Response Number 6
Name: yoseph
Date: August 23, 2009 at 05:13:47 Pacific
Reply:

As you can see it has been weeks. I have tried to fnd my own answer elsewhere. And I'm still where I was so thanks anyway.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Vista Forum Home


Sponsored links

Ads by Google


Results for: Batch file questions

End Batch File When There's No Netw www.computing.net/answers/windows-vista/end-batch-file-when-theres-no-netw/1404.html

Batch file Problems www.computing.net/answers/windows-vista/batch-file-problems/782.html

Creating a batch file in Vista? www.computing.net/answers/windows-vista/creating-a-batch-file-in-vista/273.html