-
April 29th, 2005, 03:11 PM
#1
Junior Member
Logon On Scripts???
Hi
Can anybody tell me how to write scripts to run a program or file when we log on to windows(XP).
Thanks
-
April 29th, 2005, 03:17 PM
#2
Word of warning, read the FAQ more thouroughly before you start threads. A thread already exists on this issue:
http://www.antionline.com/showthread...hreadid=259117
But for future reference if you want to create logon scripts you should look at Microsoft's script center:
http://www.microsoft.com/technet/scr...r/default.mspx
Also remember that Google is thy friend:
http://www.google.com/search?sourcei...ogin+script+XP
And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. -from The Book of Mozilla, 7:15
-
April 29th, 2005, 03:24 PM
#3
Senior Member
Just make a batch file that calls for your specifc program. Open notpad and save your file for example as: Startup.bat
In Notepad, write what ever line, to run the program, for example:
C:\Windows\Notepad.exe
Save the file.
Then drag&drop this file to START - ALL PROGRAMS - STARTUP, and now Notepad will start every time you login.
Depending on what you need to start, you may not even need a batch/script file, you could just drag&drop a shortcut from what ever program, directly in to the STARTUP folder.
If this is a DOMAIN wide implementation, use Active Directory Users and Computers, and go to the OU's Group Policy, go to Computer/User Configuration-Windows Settings-Scripts. There you have options for adding scripts for both logons and logoffs.
-
April 29th, 2005, 08:06 PM
#4
Banned
Batch files are antiquated, and cumbersom. Use a VBScript / WSH combo punch, and you can do just about anything you want at a users logon.
-
April 29th, 2005, 09:11 PM
#5
batch files are not cumbersom at all. They are usually very small and run very efficiently. They are great for simple repetative tasks and can be used for complex tasks if one is willing to put in the time and effort needed.
~halv
-
April 29th, 2005, 09:20 PM
#6
Re: Logon On Scripts???
Originally posted here by guruofall
Hi
Can anybody tell me how to write scripts to run a program or file when we log on to windows(XP).
If all you're looking to do is run a program at logon, you can do that through local policy if you want it for all users, or you can just drag a shortcut to the program to the startup group. No need to write any scripts or even use a .bat file if thats all you want to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|