![]() |
|||
|
Broadband - Exchange Getting Started Basic Techniques More Advanced Domain Group Membership For Drive and Printer Mapping |
Checking for Existence of a File or Directory
A useful technique is to check for the existence of a file or directory. You can then set actions on the result. This could be copying an update across, running an another application or just recording that something is installed. This can be achieved using the built in command line tools, as per the same script below. In both examples the script will move on to the ":next" if the file or directory is found. You could change the "if exist" to "if not exist" if you want the script to react to something being missing as an alternative. Checking for a file In this example, the script is checking for a file called "content.txt" in the directory "example".
Checking for a Directory This sample is checking for a directory called "content" which is a sub directory of "example"
| ||
| Last Page Update: 30/04/2006 |
Back to the Top Broadband - Exchange - Login Scripts - Network Admin - Outlook - Windows Mobile - Windows © Amset IT Solutions Ltd. 1998 - 2008. All rights reserved. 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. |
||