loginscripts.info
from Sembee Ltd.
UK MS Exchange Consultants
 

Page Last Updated: 21/02/2010
Getting Started - Initial Script File Creation

This information was originally on our community
site amset.info, and you may have been
redirected to this site by following a link to a URL
on that domain. This is the same information, from
the same source, just in a new location.

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


About this site

This information originally started life as a page on amset.info, our community assistance site. However that site is targeted at Microsoft Exchange server, as Sembee Ltd. is a Microsoft Exchange consultancy. Therefore it was moved to its own domain in early 2010. Traffic from amset.info is directed here.

Other sites that are owned and operated by Sembee Ltd include kbsearch.info, certificatesforexchange.com, dosprompt.info, office-recovery.info, wuauclt.info, blog.sembee.co.uk, exbpa.com and amset.info.


More Content from Sembee Ltd.
 
Resources on amset.info Other Sites Sembee Ltd.
Microsoft Exchange Command Prompt Getting Started Guide Microsoft Exchange Consultancy
Microsoft Outlook Login Scripts Director's Blog
Network Administration MS Exchange Resources  
Internet Explorer Knowledge Base search  
Microsoft Windows Recovery of MS Office content from Temp Files  
Microsoft Windows Mobile Troubleshoot the Automatic Updates Client  
Amazon Store UK ISP Status Pages  

© Sembee Ltd. 1998 - 2010.

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 on this site. This site is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.