Scripts
Shell script to list out the contents of a file
Apr 29th
This shell script will list out the contents of a file using MENU DRIVEN, considering the following: - The user enters the file name (may enter a path) - The script reads in the file name - It checks if it exists and it is a file - If it does not, it warns the user - Otherwise it should list the contents (more…)
The Printer name is invalid, Code 80070709
Apr 24th
This is a common error with VBScripts, it occurs when you using a script to map a network printer to a user. To determine the cause of such an error and to track down this issue try one or all of the following:
1. Make sure there is no mistakes in the script and the printer you are aiming to map is exist in the script with appropriate share link.
2. Make sure of the printer share name, double check the spelling (the server, the share folder or printer’s share name) just in case: ) (more…)
Simple Printer Logon Script – VBScripts
Apr 19th
The following script can be used as a logon script to add Simple Windows Printer Connection. 1- Copy and past the script in a text editor, notepad will dose the job perfectly. 2- Make whatever changes in need to suit your purposes. ie; change the server name and the printer share name to reflect yours. 3- Save the file (any name you like) with extension of .vbs, ie: printerslogon.vbs (more…)
Batch file script to map network drive to users
Apr 14th
A batch file is a text file containing a series of commands intended to be executed by the command interpreter. When a batch file is run, the shell program reads the file and executes its commands, normally line-by-line.
The following script can be used as a logon script to map a network drive to users home directory (or any directory) on the server or somewhere else.
1- Copy and past the script in a text editor, notepad will dose the job perfectly. (more…)
Shell script to create directory that doesn’t exist
Dec 27th
Writing a bash shell script called “ test.sh ” that will creates directory using MENU DRIVEN, considering the following:
- Making a new directory using (mkdir.sh)
- Read In directory name (may enter a path)
- Check If it exists.
- If it does, warn user.
- Otherwise create it.






