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.

Redirecting Output from within Batch file

I am creating a batch file with some simple commands to gather information from a system. The batch file contains …

windows batch-file cmd io-redirection
How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?

I want my batch file to only run elevated. If not elevated, provide an option for the user to relaunch …

windows batch-file windows-10 uac elevated-privileges
Batch File; List files in directory, only filenames?

This is probably a very simple question, but I'm having trouble with it. Basically, I am trying to write a …

batch-file
MS-DOS Batch file pause with enter key

Is it possible in MS-DOS batch file to pause the script and wait for user to hit enter key? I …

batch-file dos
Quickly create large file on a Windows system

In the same vein as Quickly create a large file on a Linux system, I'd like to quickly create a …

windows batch-file
How do I run a batch file from my Java Application?

In my Java application, I want to run a batch file that calls "scons -Q implicit-deps-changed build\file_load_type …

java batch-file runtime.exec
How Should I Set Default Python Version In Windows?

I installed Python 2.6 and Python 3.1 on Windows 7 and set environment variable: path = d:\python2.6. When I run python in cmd, …

batch-file windows-7 environment-variables python-2.6 python-3.1
Finding modified date of a file/folder

I am very new to PowerShell, and I was hoping I could get some help creating a script that tells …

powershell batch-file modified-date
Running Windows batch file commands asynchronously

Say, if I have foo.exe bar.exe baz.exe How do I run all of them from a batch …

batch-file cmd
Run reg command in cmd (bat file)?

I'm trying to run this reg code in cmd (bat file), but I couldn't make it work. Where am I …

windows batch-file registry cmd