Batch processing is the execution of a set of commands or software programs without user intervention. A batch file is a text file containing a sequence of such commands or programs invocations.
1
vote
2answers
124 views
Making Windows scripts run in Unix
IS there any way to make Windows scripts (BAT) files run on a Unix machine? Like importing a function or a library for example, which is only recognised on the Unix OS, but has no effect when run in ...
0
votes
2answers
88 views
batch - copy files to few computers over lan
I would like to copy \some\files to \computer1 \computer2 and \computer3 or better to c:\computerlist.txt
How to do some loops in batch files?
2
votes
2answers
162 views
Batch command to move all files of certain extension
I have a script which uses 7zip to extract all rar files which is great.
The only problem is then I have to manually go through the folders and move the .avi or .mkv files.
The script I am currently ...
0
votes
2answers
190 views
Windows 7 - Shortcut - Target Attributes too long
I need to launch a shortcut to a program (vlc.exe) and have it launch with certain attributes (it's quite a long string) and the target box will not accept enough characters. I need help finding ...
0
votes
1answer
158 views
batch move for different file types to different folder name
I have files containing in
C:\foldername1\Files\soandso1.mkv
C:\foldername2\Files\soandso2.mp4
C:\foldername3\Files\soandso3.avi
I want to move the .mkv, .mp4, and .avi back to it's parent folder, ...
0
votes
1answer
55 views
Batch file wich runs a .class file inside a path
I would like to make a batch file that:
Opens cmd.exe
Within that Command Prompt runs cd C:\mywork\ then runs set path=%path%;C:\Program Files\Java\jdk1.7.0_05\bin and at the final runs java ...
2
votes
2answers
106 views
Linux job queue for FFmpeg conversion
I'm starting up a Debian web server which will host a website where users can upload video files and play them.
Hence, the video files need to be converted into the proper format (mp4, ogg, webm) for ...
1
vote
0answers
107 views
Script working but throwing 'The syntax of the command is incorrect.' error
I am trying to use this script here: http://www.logaans-site.co.uk/2009/10/17/simpler-version-of-the-7-zip-backup/, it works but is throwing a "The syntax of the command is incorrect. " message. Can ...
0
votes
0answers
90 views
Refresh Domain Credentials Cache via command-line
Is there a way to refresh the cache a domain-computer keeps to store domain passwords? I have a PC that is infrequently on the network, and the occasion happens where I would like the manually update ...
0
votes
2answers
231 views
Create a text file using user input from a batch file
Is it possible to write a batch file that will create a popup window for the user to input some specific information, and place that information into a text file? The text file should already have ...
1
vote
2answers
149 views
Comparing part of a filename in a windows batch file
Consider this script:
SETLOCAL EnableDelayedExpansion
for /F "tokens=2 delims=." %%G in ("%1") do set partial_name = %%G
if partial_name GEQ 9200 ( move I:\rosa\transfertmp\%1 L:\OSLDos\Tmp\ ) else ...
0
votes
0answers
65 views
How to batch convert symbolic links to hard links on Windows?
I have a large folder full of many files and subfolders, some of which contain symbolic links. I would like to batch convert all the symbolic links into hardlinks.
Is there any software out there ...
-5
votes
2answers
201 views
Batch script to write color output and output prompt character
I need to write a batch script which configures this list of commands:
Put the name of the window "Cmd configuration"
Put the color of the text in green.
Put the prompt character "$"
Show the ...
0
votes
1answer
125 views
.Bat file that opens 2 URLs in different browsers then click on button located on the each page
I Would like to click on .Bat file that opens 2 URLs in different browsers (Firefox and IE) then click on button located on the each page (ex. Submit or login buttons) .
This is what I got so far in ...
0
votes
3answers
78 views
make a copy of all arguments in a batch
Since the values %1, %2, %3...etc in a batch can't be modify, I need to create a copy of it.
Question:
Q1: How to create a copy in one go?
Not like SET cp1=%1, SET cp2=%2, ...etc.
Q2: Can one ...
1
vote
1answer
212 views
batch script help, find, replace registry keys
I'm trying to figure out why my reg import command is not working in the script below. When I run the reg import fileName.reg from the DOS it works fine but when included in the script below it does ...
0
votes
1answer
143 views
On Windows 2003 how can I get the active power scheme using powercfg?
On Windows 7 I can use the parameter getactivescheme to get this information. How can I get it on Windows 2003?
On Windows 7 I can run the following code:
PS C:\Users\e> powercfg -getactivescheme
...
1
vote
2answers
180 views
How to get the Visual Studio installation path in a batch file
Normally, the path is something like C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\.
From Visual Studio, one can use $(VCInstallDir)$ to get this path.
Q: But in a batch file, how to get ...
0
votes
2answers
149 views
Batch video conversion - With subtitle burn-in
I want to convert a folder of .mkv files for online use.
By this, I mean burning in the subtitles and if possible, adding two different languages (so Youtube will let the users choose.)
Handbrake ...
0
votes
2answers
96 views
Can't make batch file to start a second .bat
I have this code
@echo off
cd c:\windows\System32
for /f "skip=3 tokens=1" %%i in ('TASKLIST /FI "USERNAME eq %userdomain%\%username%" /FI "STATUS eq running"') do (
if not "%%i"=="svchost.exe" (
...
2
votes
1answer
340 views
How to bulk-rename files with invalid encoding or bulk-replace invalid encoded characters?
I have a debian server and I'm hosting music for an internet radio station. I have trouble with file names and paths because a lot of files got an invalid encoding, for example:
./music/Bändname - ...
3
votes
1answer
560 views
Run a batch/cmd upon screensaver
Is there a way to run a .bat or .cmd when the screensaver starts? I've noticed some .exe can run if you rename them to .scr but is that it?
4
votes
2answers
194 views
Windows Explorer: Customize view settings via batch or shell-extension?
In folders with shortcuts (and junctions) I oftenly like to have mid-sized icons, sorted names and grouping by type. Alas, Explorer oftenly forgets these settings once I made them manually.
The ...
0
votes
1answer
434 views
Batch file to copy files from desktop location to another location?
I want to Copy/Move files in Windows XP from Desktop(a Folder) to My Document(another Folder), which was created by same Batch File on Current Date in Format DD/MM/YYYY.
This is working fine when ...
0
votes
3answers
304 views
Batch script to append record to csv files
I have a bunch of stock data in csv's that I am backtesting trading strategies on. The problem is that my strategy buys the open market price if a signal was found yesterday, unfortunately my data is ...
2
votes
1answer
49 views
How to register a macro programmatically?
I have like 700 machines in which I need to deploy a new macro we have created. Is there any way to do this via cmd?
0
votes
1answer
274 views
Windows: Batch processing images with GIMP and saving them to new files
On my windows machine, I want to use GIMP to modify all PNG files (filename.png) in the current directory and to save the output file to the sub-directory out/filename.png. The processing that is ...
1
vote
1answer
120 views
Winows XP/7 copy command line involving junction
I have a batch script which needs to work with Windows XP (for some time being) and Windows 7. The script also copies a link to the Windows Desktop.
copy /Y path\to\the\link.lnk ...
0
votes
1answer
217 views
batch remove pdf password using Acrobat pro 11 or other software
I have thousands of pdf with password encrypted and i want to remove the password in batch process, i tried acrobat 11 pro and created a batch action to remove, but its til prompt me every to enter a ...
1
vote
3answers
136 views
Open Run… dialog from command
I would like to run the Run... dialog (the Win+R) from a batch command? There is an shotcut to it in C:\Users\USER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools but that shotcut ...
0
votes
1answer
80 views
Alternative to a BAT file to open an application with arguments?
A BAT file just does not look good to me in 2013 for such a simple task. Is there an easy alternative to that on Windows 7?
1
vote
0answers
137 views
Run shutdown script as Administrator on Windows XP
I've written a script using Ninite Pro to update the installed Applications on the Windows XP pro Client.
Unfortunately it has no administrator privileges, is there a way to run a shutdown script as ...
1
vote
1answer
195 views
How to Use Mklink Batch-files with FOR command? (Automatic Junction-Point Recreation)
I'm trying to create a batch-file that creates (DIR) junction points; I commonly use.
Bellow is a script, which creates multiple links, to the same location.
@echo off
for /f %%i in (input.txt) ...
0
votes
0answers
50 views
OpenSSH and Batch file execution and control
I would like to run a windows batch file on Windows Server 2003 local server (AKA ServerA) which executes another batch file on Windows Server 2003 remote server (AKA ServerB). When the batch file on ...
1
vote
1answer
204 views
Batch files to create shortcut in multiple locations using if condition
We have a batch file which creates shortcuts on Windows 2003 machines.
The command which we use is something like:
echo copy the shortcut to the server All Users folder for windows 2003...
xcopy ...
1
vote
2answers
76 views
Skip hidden folders in .bat scripts
I am trying to find a way to get a listing of all files, without hidden directories. I have tried several variations of something like this:
dir /b /s /a:-h z:\ >toc-z.txt
but this only ...
0
votes
1answer
366 views
How can I move files between folders and subfolders using a Windows script?
I am moving .jpg files from a directory and its subdirectories on a daily basis and then deleting them. To make this easier I created 2 batch files: One that moves the files and one that deletes them. ...
2
votes
1answer
85 views
List files in Windows batch variable
Please read this screenshot:
I wanted to have a list of files in variable for later reuse, but unexpectedly I get duplicate files and literal "delayed variable expansion" !variable!.
Why, or how ...
1
vote
2answers
149 views
How to “pause” only if executing in a new window?
I have authored a batch script that assumes %1 is a path to a file. At times I would like to use this batch script via drag-drop in Windows Explorer (dragging my target file onto my batch script ...
0
votes
2answers
262 views
Windows command to perform a similar function to spool command in SQL or Script command in UNIX?
In DOS is there a command to perform a similar spool function in SQL or Script command in UNIX to create a log?
I want to print all command line output to a file but I don't want to use the echo ...
0
votes
0answers
25 views
What software is used to eliminate curvatures of a scan? [closed]
I need to know how to eliminate image curvatures. Please!
3
votes
1answer
66 views
Append to start of filename
I'm trying to add the word [Replay] to all mp3 files in a folder using a batch file like so:
@echo off
for %a in (c:\folder\*.mp3) do ren %a [Replay]%a
But it wont rename the files.
all the ...
1
vote
2answers
275 views
How do I prevent Windows from randomly spinning up a (green) USB harddrive?
Even if the powersaving feature of Windows is set to never shut down my harddrive, my external USB harddrives will still spin themselves down automatically after some period of inactivity. The problem ...
1
vote
0answers
260 views
Batch Avidemux - What am I doing wrong?
I'm trying to make a batch file that runs through a set of mkv files and hardsubs the embedded subtitles into outputted mp4 files, using Avidemux and MKVToolNix. Here is my batch file:
set ...
0
votes
1answer
159 views
How to get Windows language programmatically? [closed]
I need to install some version of one package depending on the SO language. How can I get it using a batch file? I'm using W7 professional.
1
vote
0answers
32 views
How to programmatically change windows data? [duplicate]
Possible Duplicate:
What is Sysprep? How is it useful?
I have a WMI image to load a preload and preconfigured image of windows. We use Windows PE in a boot USB to load this and autoformat ...
1
vote
2answers
226 views
Batch capitalise all folders, subfolders and files within
I am looking to rename all directories on a certain hard drive (not C:) by capitalising the first letter of every directory (so: \images -> \Images). Unfortunately I have not enough experience to ...
0
votes
1answer
84 views
Multiple folders on server, create zip file for each
I have a large number of folders on a server that I need to zip.
Each folder will be zipped to a separate zip file. Zip file name = folder name.
After zip is created, delete folder.
Can I do ...
0
votes
2answers
216 views
rename multiple file add number to name using batch
I have files in folder named unix_aaa.txt unix_bbb.txt unix_ccc.txt and so on.
How do I change all the files that start with unix to names like
001_unix_aaa.txt
002_unix_bbb.txt
003_unix_ccc.txt
...
1
vote
1answer
246 views
IP, Gateway and DNS changer [.bat Win7]
I have a batch file that I use on my WinXP SP3 (I found it on the net and it worked).
SWiTCH TO CONNECTION 1
@ECHO OFF set varip=192.168.0.118 set varsm=255.255.255.0 set
vargw=192.168.0.1 set ...