Archive for the 'Uncategorized' Category

How can I play a sound file from a Windows batch file

Using the Windows mplay32.exe or mplayer.exe file included with Microsoft Windows allows you to play Windows sound files. Depending on your version of Windows will depend on what file you’ll run. Windows 95 and 98 users will be using mplayer instead of mplay32 as shown in the below examples.
As can be [...]

How can I make a batch file rename a file to the date or time?

There are a few different methods of how this can be done. Below is an example of how you could use the date command within the for command to extract the current date and use that data to rename the file. Each of the for commands listed in this document would be [...]

How can I run a batch file or other file minimized

Microsoft Windows users can run batch files or other files in a minimized window by using the command prompt start command. This is useful for when a user needs to run a batch file but doesn’t want the user to interrupt its operation. Below is an example of how the start command can be used [...]

How can I run a batch file at a specific time

With the introduction of Microsoft, Microsoft has included Scheduled Tasks, a software program designed to run any program, including batch files, at any time or any schedule [...]

How to shut down the computer with a batch file

Shut down the computer
C:\Windows\RUNDLL32.EXE user,exitwindows
exit

NOTE: When typing the above two lines, spacing is important. It is also very important that the exit line be placed into the batch file [...]

How to restart the computer with a batch file

Restarting the computer
START C:\Windows\RUNDLL.EXE user.exe,exitwindowsexec
exit
NOTE: When typing the above two lines, spacing is important. It is also very important that the exit line be placed into the batch [...]

How to make a bat executable?

A .BAT file can very easily be made into a .EXE or .COM file. This can help give you additional abilities such as file versions and keeping the program hidden from the user and/or keep the source of the batch file hidden from the user. We recommend users use the bat_to_exe_converter file to convert their [...]

How to quickly replace the file extensions of several files

It may be necessary to rename several files to allow compatibility with another program. A good example where this could be used is renaming an ASP file to an HTM or HTML file.
Use the below command at the MS-DOS prompt or within [...]

How to run a batch file each time the computer boots

Create a shortcut to the batch file.
Once the shortcut has been created right-click the file and select Cut.
Click Start, Programs, right-click the Startup folder and click Open
Once the Startup folder has been opened click Edit and paste the shortcut into the startup. Any shortcuts in the startup folder will automatically start [...]

Change the executable path of the Wisdom Service in 3 simple steps

Change the executable path of the Wisdom Service in 3 simple steps:
Start Menu -> Run and enter “Regedit” (sans quotes)

Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wisdom
Change the ImagePath key – double click and set the correct path