Top "Batch-file" questions

A batch file is a text file containing a series of commands that are executed by the command interpreter on MS-DOS, IBM OS/2, or Microsoft Windows systems.

How do I get the result of a command in a variable in windows?

I'm looking to get the result of a command as a variable in a Windows batch script (see how to …

windows scripting batch-file
how to empty recyclebin through command prompt?

Usually we delete the recycle bin contents by right-clicking it with the mouse and selecting "Empty Recycle Bin". But I …

windows windows-7 command-line batch-file recycle-bin
Windows batch: echo without new line

What is the Windows batch equivalent of the Linux shell command echo -n which suppresses the newline at the end …

windows batch-file cmd newline
Batch files : How to leave the console window open

I have two batch files, one of them executes another, i.e. "My Batch File" > 2. "Some Other Batch File" …

windows batch-file
How to request Administrator access inside a batch file

I am trying to write a batch file for my users to run from their Vista machines with UAC. The …

batch-file command-line uac elevated-privileges
Prevent overwriting a file using cmd if exist

I am currently writing a .bat batch file that executes an installation file. Before it runs the installation file I …

batch-file cmd command-prompt
Safest way to run BAT file from Powershell script

I can not get a powershell script to execute a bat file directly. For example, this works on the command …

batch-file powershell
How can I get the value of a registry key from within a batch script?

I need to use a REG QUERY command to view the value of a key and set the result into …

batch-file registry
Running vbscript from batch file

I just need to write a simple batch file just to run a vbscript. Both the vbscript and the batch …

vbscript batch-file 32bit-64bit 32-bit syswow64
BAT file to map to network drive without running as admin

I'm trying to create a .bat file that will map to a network drive when it is clicked (it would …

windows batch-file drive