Login Scripts
Getting Started

Before you can create your script, you need to create the initial file that will hold you commands.

All examples on this web site use notepad. It is simple and is available on all machines. You may want to use your preferred text editor to once you are comfortable with how scripts work. You should also ensure that "word wrap" is turned off as wrapping of commands can cause problems.

  1. Start Notepad - which creates a blank file.
  2. Ensure that "word wrap" is turned off ("Format" --> "Word Wrap")
  3. (Optional at this point) Enter some commands from the examples on this web site.
  4. Click "File" then "Save As".
  5. Change the "Save as type" to "All Files". This allows you to enter your own extension.
  6. (If you have other options, leave these alone.)
  7. (Optional) Create a new directory to store your login script in. This can be useful when you are working on scripts as you know where they are. Change to this newly created directory.
  8. Enter the filename "login.bat" and press save.

You now have a file that will run if you double click on it.

Editing the File

If you wish to edit it again, right click on the file and choose "Edit".

Entering paths

When you are writing paths to files or directories, it is always a good rule of thumb to enclose the path in quotes.
This is required if the path has spaces in it - for example when you are referencing "program files" but doesn't do any harm to use it for all paths and is a good habit to get in to.

For example:

"c:\program files\office"

instead of

c:\program files\office


Top of the Page - Home Page
Last Page Update: 28/03/2015

Copyright Sembee Ltd. 1998 - 2024.

Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions.

All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned within and is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.

Sembee Ltd. is registered in England and Wales at 1 Carnegie Road, Newbury, Berkshire, RG14 5DJ.
Registered company number: 4704428. VAT Number GB 904 5603 43.

Server 1