How can I write Windows XP logon batch files? Do you have any examples of such files?
feedback
|
closed as not a real question by grawity, Breakthrough, random♦ May 2 '11 at 12:20
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.
|
It really depends on what you are trying to achieve (change machine/user settings, map network drives, etc. ). Microsoft website has a great number of examples, so do others. By and large the order of actions goes like this:
Please be a bit more specific on desired outcome and I'll do my best to help you. | ||||
feedback
|
|
As Tavvi said above, it depends on what exaclty you want the batch file to do. They can be used to map a network drive or change user settings. Batch file scripting can range from very simple (list file in a folder, and save to a file) and range to very complex (with menus, user interaction). For a sample .bat file, open up notepad and type in
then save the text file and rename it from ".txt" to ".bat" and run it. This will list all folders in the working directory and save them in a text file on the root of the C:\ drive. You could then put this in a startup folder and it would run when the user logs in. Bear in mind cmd-line and batch files can be very powerful and can easily cause damage if they are not written and tested properly. | |||
|
feedback
|