Posts Tagged ‘batch script’

Creating System Environment Variables in Windows 7

Every administrator who uses batch scripts is well aware of the built-in environment variables (WinDir, Path, ProgramFiles, etc.). Using them makes your batch scripts a lot more portable on other systems and is overall a rather good practice. For example instead of modifying a batch script for a different system in which the Windows directory is located in a different place you can simply use the WinDir environment variable. We use it like so: Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 0.0/10 (10 votes cast)

How to add an icon to a batch file by compiling it to an executable file

Sometimes when we write batch files we wish to add an icon to the batch file. A quick and easy way to do that is by compiling the .bat file to an executable file.

In our example we will use Quick Batch File Compiler (QBFC).
So suppose we have a .bat file with this source:

cd C:\\Program files\\Skype\\Phone
Skype.exe /secondary

This basically spawns a new instance of Skype (Skype 4). We want it to have an icon instead of having the .bat file look. A quick way to do that is to compile the batch script into an .exe file.

Open Quick Batch File Compiler. Open the Source tab and paste the source: Read the rest of this entry »

VN:F [1.9.18_1163]
Rating: 0.0/10 (10 votes cast)