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. Please use the tag [batch-file] for that.

learn more… | top users | synonyms

0
votes
0answers
62 views

Batch to enable and disable a setting in Internet properties

I'm trying to find a .bat script to enable and disable a certain setting when clicked in Control Panel > Network and Internet > Internet options > Advanced > Browsing > Use inline autocomplete in the ...
0
votes
1answer
59 views

Windows Batch to automatically unmap Network Drive on Wifi?

I have number of network drives for work. When I work from home, my computer is very slow due to these network drives trying to connect. Does anyone know of a script, which will automatically unmap ...
0
votes
0answers
14 views

create parent and child folders based on folders being transferred .bat script

I’m using windows 7. I am currently using the following .bat script file using scheduled tasked for once a day: set source=C:\Users\myid\Desktop\1 set destination=C:\Users\myid\Desktop\2\ xcopy ...
0
votes
1answer
104 views

Create a batch file to remove all files and subfolders in a folder

I have recently installed a new NAS and am trying to create a 'Temp' folder as I had before, basically a folder that is used to move files around during work hours and then deleted every night. My ...
0
votes
0answers
39 views

run batch file only when the same process is not in progress

I would need to run batch when user logs in, but if any other cmd.exe is running, then batch won't execute. Maybe something similar to this: How can I recognize a running batch file in task manager?. ...
0
votes
1answer
176 views

Using a Batch Script to Move Specific Files with Specific File Contents

I am looking to find a file with the contents 'Radiac' in one particular folder and then move all those files to a another folder. For example: I have might have 3 identical file-names with different ...
-1
votes
2answers
95 views

Rename Files In A Batch Script

I'm attempting to rename all files in a folder via a batch script but I'm getting an incorrect syntax error that I can't seem to identify: for %%f in (%Source%\*DebugLog.Config) do %%f ren %%f ...
1
vote
1answer
63 views

Batch file input issues on remote computer

I made a batch file that takes various inputs and then uses them in the commands ahead. This script works fine on my computer but when I put this script on another computer and use PsExec.exe to ...
1
vote
0answers
31 views

Login to multiple putty sessions, each with a new path

I login to multiple putty sessions everyday to start some services. So in total I have 20 different paths. So what I do is: I login to putty and copy/paste the path in each session. Now, what I ...
0
votes
0answers
66 views

How to tell from the command line if a PDF has an browseable index/table of contents?

I use Linux. I need a command line way to tell whether a PDF file has index/table of content. Knowing that a PDF file contains structures that could be called also an index/table of context, and to ...
0
votes
0answers
26 views

Win7 long filename passed into batch file only see short file name

I have a batch file that is called from the context menu , all it does is pass in the file name to the batch file. From the context menu [HKEY_CLASSES_ROOT\*\shell\Label Back Up File\command] ...
0
votes
1answer
189 views

Batch file to get remote system information in a loop

Sorry about the title, I struggled to explain it in one line. I have a simple script which gets a remote systems status, and returns the line which contains the total memory, and outputs it to a ...
-1
votes
3answers
51 views

batch script to copy from external PC

I'm trying to write a batch script for copying appdata files to my usb drive...i figured (which i'm not sure about) that if in any pc i plugin my usb %appdata% can be used as default path but for ...
0
votes
2answers
152 views

How can I make windows command prompt return a substring from a command ouput

My path is pointed towards a cloud folder (located at various places on my various devices) wherein I have stored a batch file that is supposed to locate itself on the machine, and then make that ...
0
votes
0answers
30 views

Batch with Multiple REG ADD /f but Some Lines Still Prompting for Confirmation

I created a CMD file with multiple REG ADD commands - they all are successful when it is run. All of the REG ADD lines contain a /f to force the change without confirmation. The are all contained in ...
-1
votes
1answer
127 views

Batch script to merge files using copy command in numerical order

Would appreciate it if anyone can help me with this request. I need a dynamic batch script which can do the below command for ANY number of files: Copy 1.txt + 2.txt + 3.txt + 4.txt newfile.txt If ...
2
votes
1answer
155 views

How to use wmic to kill a cmd.exe instance searching by it's command line?

I have seen that is possible to use wmic to find the id of a process searching for the command line which was used to start it. But I have 2 problems. I need to use this in a batch file so I cannot ...
1
vote
1answer
18 views

Alternative `batch` command for resources rather than load

I like the at and batch commands for scheduling long running tasks I do not plan to stick around to see. But my longest running tasks share resources other than just the CPU (databases, free disk ...
0
votes
1answer
29 views

Changing names of many folders with Windows console or batch file

I have a folder with many folders inside. They have a name pattern: dd-mm_PSD and I want them to be named with that pattern: mm_dd_PSD becouse it's easier to manage. Can I do it "globally" with ...
0
votes
1answer
360 views

How to launch minecraft 1.8.5 from Command Line

I'm working on a custom MC Launcher, but I can't find a way to run Minecraft (1.8.5) from the command line. I saw some other examples which used to work fine on 1.7.2, but I can't get that code to ...
-1
votes
1answer
199 views

Using Winrar's rar.exe with commandline interface to archive sub folders

I was hoping someone might be able to answer this. I've seen similar questions, but none specific to my question. Using rar.exe in a batch file under Windows 8.1 PRO I want to archive a set of sub ...
1
vote
1answer
77 views

Batch renaming JPG filenames in CentOS 7

I have about 80 of these files in my directory. -rw-rwxr--+ 1 vagrant vagrant 38122 Nov 13 12:19 CRMPicco RFC16 Women's 80.jpg -rw-rwxr--+ 1 vagrant vagrant 101286 Nov 13 12:19 CRMPicco RFC16 ...
0
votes
0answers
39 views

Batch (program) to monitor, copy files

I need to copy files from ftp. There are new files every ~ 30s. I need to move them to directory. I try synchronize with winscp but from local directory files are taken and synchronization keeps to ...
1
vote
2answers
154 views

Move all files from multiple subfolders into the parent folder

I would normally open the parent folder and search for * in order to select all of the files in subfolders, but in this instance, I have over 1,000,000 files that I need to sort through, so my ...
0
votes
1answer
229 views

Issue with network drives freespace check - Powershell script

I have a batch file which deletes some files from the network drives and then calls a powershell script. The powershell script gets the space details of all the network drives, and send out a mail. ...
0
votes
0answers
14 views

Find all files that occupy the sector range on NTFS

How can all files that occupy the sector range (not particular sector) be found on NTFS? The solution I'm using now is to process the sectors in batch with Micrisoft nfi. And it doesn't suit me, the ...
0
votes
0answers
21 views

Unicode code points converted to characters in batch

To convert code points to characters you can, for example, place the cursor next to one of them and press Alt+x. I have a document full of Unicode characters' code points. I would like to substitute, ...
0
votes
2answers
1k views

Script to change wallpaper in windows 10 not working

I am trying to get a script to work that will change the default wallpaper for windows 10 because I will be deploying Win10 to all clients. When I run the batch code below, it is not changing the ...
0
votes
2answers
27 views

Variable wont work when made in IF batch program

I am trying to make a game, and whenever I try it, it says there is a syntax error when it is right :Q3 echo ==================================== echo Do you want to be skilled in: echo. echo Speed ...
0
votes
0answers
59 views

Geany “send current selection to” command line or batch file(as argument) or browser in Windows

I am using Geany version 1.25 on Windows 7 x64. I tried to send current selected text by setting Context Menu >> Format >> Send selection to >> My command but it isn't working. I ...
0
votes
1answer
62 views

Running command on remote windows server and add results to a text file

I am trying to find the installed version of a piece of software on a lot of servers (800+). The command is: "dsmqver -f 2" which returns output like "Version: 7.5.0.2" I have been trying to ...
0
votes
2answers
341 views

Automatically print word document using bat file

Automatically print word document using bat file "C:\Program Files\Microsoft Office\Office14\winword.exe" "D:/new/CABSC.docx" /mFilePrintDefault /mfileexit using this bat file I am able to print ...
1
vote
2answers
634 views

How to get a registry value and set into a variable in batch

I need to get a value in a registry key and store in a variable using a batch file. I wrote a basic command line to exemplify my logic (using echo instead of setting a variable): for /f "tokens=3 ...
0
votes
1answer
29 views

Windows Batch: read line that raised errorlevel

Is there a way to read the line of code that raised the errorlevel from within a batch file after its execution? (I'm afraid there isn't). For example the command net use H: \\MyComputer\sharename02 ...
0
votes
1answer
83 views

Can't get a command prompt window to show when testing a UAC batch file on startup

Most of the questions relating to this seem to be centered on hiding the command prompt window when running a batch file at startup. I seem to be having the opposite problem. I'm trying to run a ...
1
vote
2answers
112 views

Windows Batch: fetch first occurrence in a variable listing

I am working on a Windows 7 batch command file (drv.bat) that attempts to map a drive that is already taken. Net use would list it as a drive mapping hence errorlevel is raised to 2 in this case. ...
0
votes
1answer
225 views

FileMaker Pro 13 Advanced and Windows Server 2008 R2?

What do we not understand about interaction between FileMaker Pro 13 Advanced and Windows Server 2008 R2? The problem to solve: At unpredictable intervals (perhaps averaging 3-5 days), the FileMaker ...
0
votes
0answers
39 views

Batch script to write a line in host file to block a website

Batch script to write a line in host file to block a website I will be sending this remotely. I know how to do it on my PC manually, but I need the batch command to send remotely to block a website. ...
4
votes
1answer
257 views

I am trying to use a batch file to automatically copy my Desktop to the cloud each afternoon. I can do this with other drives, but not my desktop

This command works properly to create a backup of my F drive to my OneDrive, naming the folder with the current date: xcopy "F:\" "C:\Users\myUserName\OneDrive for Business\F Backup ...
0
votes
3answers
39 views

IF and ELSE both are eventuating at same time in dos

I am not able to figure out why at the same time, both IF and ELSE are satisfying the condition. @echo off setlocal enabledelayedexpansion enableextensions Set ...
0
votes
1answer
14 views

Open a file saved on a team place with batch

I would like to open a excel file saved on an intranet teamplace using a batch file. The problem that i found is that the link for the file ...
1
vote
1answer
538 views

Mapped drive is not accessible, to copy files, using Task Scheduler

On my Windows Server 2008 R2 machine, a batch file is scheduled to run using Task Scheduler. For some reason, only a portion of the commands in the batch file are executed; Some MS DOS commands are ...
1
vote
0answers
25 views

Command for switching desktops in Windows 10 [duplicate]

Is there a command to switch to a specific desktop in Windows 10 (or alternatively open an application on a specific desktop which achieves kind of the same effect since windows will automatically ...
0
votes
2answers
94 views

Windows add empty line to start of txt batch

I would like to add an empty line to the beginning of multiple text files. To append this to the end would work probably work just the following in Windows cmd. echo. >> *.txt How do I add ...
0
votes
2answers
2k views

Robocopy: Log names of skipped/Failed files

I am using the following batch file to run my robocopy command: @ECHO OFF for /f %%a in ('wmic os get LocalDateTime ^| findstr ^[0-9]') do (set ts=%%a) robocopy [source] [target] ...
0
votes
1answer
36 views

How do I batch delete a specific subfolder from multiple folders?

Here's the "not-working" version of what I'm trying to do: rd d:\Video\*\Sample /s /q I've got a bunch of subfolders with different names within my "Video" folder, and some of them have a ...
1
vote
1answer
123 views

Automatically find installation directory of application and run batch command inside folder

Basically, assume I have program called ABCD installed. I want to automatically find out where exactly (which folder) it is installed (sometimes not installed in C drive, that's why), and run a batch ...
1
vote
1answer
130 views

How to send a SIP message with a batch program

I must be missing something. I can't seem to find how to send an instant message via SIP using a simple batch program to which I can pipe the content of the message. I know how to do it ...
1
vote
1answer
31 views

Create a list of the files on a hard drive and name the list using the volume name

So, I know this creates a list of the files in the drive: SET /P drive=Enter drive letter: tree %drive%: /a > "C:\Drivelists\%listname%.txt" but I don't know how to get the drive's name ...
1
vote
2answers
65 views

Running a .bat file uploading image files, want to know what files are new?

I've got a .bat file that I created, which uploads new files to my company's server.  It works great, but after it runs, I have no idea what files are new vs same.  When the batch file runs, I can see ...