Text file containing a sequence of commands or program invocations that does not need user intervention.

learn more… | top users | synonyms (1)

0
votes
0answers
15 views

Add item to “New” context menu in Windows 8 for only one user without admin rights

I am trying to edit the registry on my windows 8 computer so that I can create a batch(.bat) file from the "new" menu. The only problem is I don't have admin rights. So I was doing some research and ...
0
votes
1answer
21 views

Can Windows XP use net send command to send a message to a later version of windows?

The net send command can only be used in Windows XP or earliar versions. But can a Windows XP computer send a message to a later version of windows using the net send command?
1
vote
2answers
11 views

Mac Terminal File Rename Randomly

What is the best way to rename files for example .JPG & .jpg at the same time. I have looked on here and google and come across things like below but is there a way to cover both? Script: for i ...
0
votes
0answers
25 views

appending folder name to filenames

please help me with this: for a file structure in a parent folder (say "C:\Folder 1") that contains: Folder A\File a.txt Folder B\File b.txt I would like to prefix the folder name to the ...
2
votes
3answers
32 views

Windows 8.1: Restore .bat file association to default

A few weeks ago I accidentally changed .bat files to open with Notepad++ (a fairly common issue I believe). On Win XP and Win 7 I had a .reg file that updated the relevant registry keys and sorted out ...
2
votes
2answers
52 views

find a directory and opening it in Windows with cmd

is there possibly any way to find the directory of a file ("example.txt") and then if it finds the file open the directory (such as "c:\example\sub\") on cmd (or vb)? of course looking in all the ...
0
votes
0answers
22 views

Run all .bat files contained in several subdirectories recursively in Python? [migrated]

I want to run x.bat automatically and recursively in Python: C:\test | +---folder1 | x.bat | +---folder2 | x.bat | . .----folder..n x.bat To get started I have ...
0
votes
1answer
31 views

How to call perl file every minute from batch file

I have written a perl script which i try to call every 1 minute from a batch file. There is no error but it do not call it every 1 minute. It just pop command prompt when clicked once on .bat file. ...
-1
votes
0answers
17 views

batch: difference between array and list + reading list item [closed]

what is the difference between a list and a array. I tried to read a single item from a list but it seems it is only possible if I work with arrays. So what is difference since the declaration is ...
0
votes
1answer
21 views

Make Batch file to add special tags at the front of video files at one folder

I always make download for learning tutorials videos , Some times I don't remember where I can find those videos because they are too many , so I decide to make tags to those file and put them in ...
0
votes
0answers
26 views

Make a batch file close when a program different from the one it starts closes

I need to make a batch file that starts one program, and closes when another closes, but i cant get the batch file to work without starting two instances of name2. When I only use Start /wait, the ...
1
vote
2answers
23 views

Why is the value of ErrorLevel not updating?

I am trying to write a subroutine in batch to determine if a computer has Deep freeze installed or is safely unfrozen. (For those who don't know, Deep Freeze is a program that is commonly used to ...
1
vote
1answer
23 views

Batch file to move files created daily to a specific month folder

Files get placed in a directory daily: myfile11515, myfile1243, myfileABC Need to move them to a different directory on the same computer that has the month folders: January February March etc. I ...
0
votes
2answers
14 views

Batch File not working after modification

I have a batch file that creates folders in other client folders. I added one additional folder to be made now the bat file won't work. Am I missing something here? @echo off set Dir=y:\(Directory ...
0
votes
1answer
38 views

how to get files list in a folder with batch file without file extensions

What I used is below and its perfect but results are with file extension.(ABC123.pdf) dir /a /b /-p/o:gen >C:\WINDOWS\Temp\file_list start notepad C:\WINDOWS\Temp\file_list I need results ...
1
vote
1answer
30 views

Oracle SQL Plus expdp in bat file

I try to export all my bases with a .bat file, but when the .bat file open and connect in sqlplus, the program don't read the last of file. I need export and log all export with Spool. The .bat is ...
0
votes
1answer
44 views

How to stop a running .bat file which runs after every 10 minutes

I have written a .bat file which runs every 10 minute. The problem is now when i want to stop it it never stops. (This .bat file further calls a perl file in the code). What can be done to kill it ? ...
0
votes
2answers
38 views

Why does “cmd /k” reset/clear/delete command history?

Can anyone explain why cmd /k clears the command history of my window terminal (CMD). When I run a batch file within a previously CMD and I put cmd /k at the end of the line, the command history will ...
1
vote
1answer
42 views

Running a batch file command with arguments

I'm creating a script to do some repetitious OpenSSL work, but cannot seem to get the batch file to execute the commands. Once the file has navigated to the correct directory, I try running: openssl ...
0
votes
1answer
50 views

how to download pictures with wget

i would like to download pictures from http://myhomepage.com/plots/20150111-03/4711/4712.png every 3 hours. "20150111-03" is variable, rest is stable. That means every 3 hours the download looks like: ...
0
votes
1answer
38 views

Batch file for getting all file names within a folder

I'm using a program called Irfanview which can merge two images into one using its command line function. Here's an example: i_view32.exe /panorama=(1,C:\folder1\img1.png,C:\folder2\static_img.png) ...
1
vote
2answers
35 views

Is there a more compact way to use the IF loop functioning in a batch file?

The classical way is if "%name%"=="john" goto ok if "%name%"=="eric" goto ok if "%name%"=="mary" goto ok But can this be done in more compact way?
1
vote
1answer
56 views

Need Batch File to close a Window.. NOT the batch window

Complete novice here so please forgive if the answer is obvious. I have a batch file that does the following. Starts program 1 Waits 3 seconds (I have to click a button on program 1 after it opens) ...
0
votes
1answer
22 views

Associating Windows file extension with specific bat file and support argument passing

On my Windows 7 system, I have associated the .blend extension with a specific bat file I wrote, which is shown below: blender.bat: set PYTHONPATH="" "C:\Program Files\Blender ...
0
votes
2answers
43 views

My “break” command is broken

I am not a programmer and I am hoping you can help me. I am using Windows 7. I have a .BAT file which was running fine up until yesterday, specifically what if failing is the "break" command I use ...
0
votes
2answers
39 views

How can I remove all but last 10 characters in a group of files

How can I rename a group of files like admin_ball_126608454.gma another_thing_384157357.gma to ds_126608454.gma ds_384157357.gma
-3
votes
1answer
37 views

How can I get a win 7 batch file to output a list of unique filename prefixes?

I have the following files in a folder MyDocuments 2014-10-10.zip MyDocuments 2014-10-09.zip MyPictures 2014-10-10.zip MyPictures 2014-10-09.zip Ideally I would like the output to show MyDocuments ...
0
votes
2answers
45 views

how to run a batch recursively

I have a parent folder (BIG_Folder), which contains many subfoldes (folder1, folder2, folder3 ...) in each subfolder a batch file exists, it is always the same (x.bat). I want to run all bats, ...
1
vote
1answer
38 views

How fix when cmd prints command instead of run it?

I am trying to automate chef setup for windows. So I wrote .bat according to this: call winrm quickconfig -q call winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"} call winrm set winrm/config ...
0
votes
1answer
33 views

Batch file to search for a file, then delete that and the parent folder

Basically I need to search the folders within C:\Windows\ccmcache and search for adobe cc.msi and then delete the entire contents of that directory This is what I already have @echo off set ...
0
votes
1answer
47 views

Find IP with Batch

I need to use a command of some sort to find the external ip of the user of my batch file. I have tried many methods but I need the batch file to recognise the ip as a variable of some sort so it can ...
0
votes
2answers
72 views

Using cmd to edit reg keys?

I need to edit 2 registry keys in Windows 8.1 but make it in a way to be able to use them in a batch file to be able to use them on more than 1 PC. In the batch file I will have more reg key's that ...
-3
votes
1answer
36 views

How to search a string and extract another string pattern from a text file using windows batch script

Consider out.txt file have the following format Display Variable; ID NAME value ===*==========*================ 201 Variavle 07Dec2014 Display Variable12; ID NAME value ...
0
votes
0answers
22 views

Batch conditions and variable

I have a question about variable and batch windows. The main goal is : I have files in directory (pattern 0? with ? a number between 0 and 9). First I create a %%nf.bat (filename of each files) ...
0
votes
1answer
35 views

How to rename a file to include remote machine's hostname via batch script?

I have a .bat file that copies a file from one computer to another. During the transfer I would like to rename the file to include the hostname of the computer from which the file originated. The ...
0
votes
1answer
58 views

Batch File Gives Message: “1 was unexpected at this time”

I wrote a batch file that checks if a server is online. It uses a few cygwin-64 tools. Here's the batch file: wget -S http://www.example.com/ -o headers.txt -O index.html cat http-commands.txt | ...
0
votes
2answers
52 views

How to set a variable in DOS batch file?

How to display only the status of ping results and not the whole output of ping? ** My server1 is .... online ** My server2 is .... online ** My server3 is .... offline I tried to this with the ...
0
votes
0answers
13 views

Add timestamp to file names

On a server running Windows Server 2008 R2, I would like to rename a number of files matching this quasi regexp: "\d+.\d+.\d+_FOO-\d+.xml". Each new file should contain current time "hhmmss" as shown ...
0
votes
2answers
22 views

Output redirection at the beginning of line

I'm used to specify output redirection on the end of the line like: echo blah > output.txt Both in Windows and *nix. Recently I'm seeing more and more examples that redirect at the beginning of ...
1
vote
1answer
70 views

WMIC - how to check if return empty value?

I'm making a batch file to make log of computer (I need save some informations before format PC's on my work...) So I found some commands to create this log, see: rem -- Windows Version wmic OS get ...
0
votes
1answer
34 views

Prevent ConEMU from closing tab after last program exits

What I want is some way to click on ANY batch file from Explorer and see the output without writing a helper script to PAUSE it afterwards. This is a question which seems likely to generate more OT ...
0
votes
1answer
39 views

“START /W” with additional switches

I am trying to run a silent install of several exe's via a batch file, however need them to run one by one instead of simultaneously. It seems like "START /W" wont work when switches not native to it ...
1
vote
1answer
70 views

VLC Command Line Flag --loop from Batch File Not Working

I used to have a batch file that started a playlist in VLC, set to loop indefinitely. Now though, I'm not sure if I have messed it up at some point or a new version of VLC has rendered it obsolete, ...
0
votes
1answer
30 views

Batch Move using wildcard in filename is getting files that do not match parameters:

I have a number of files with a 3 digit prefix. I'm attempting to move files based on the prefix using a wildcard. I expect that move 100*.sql subdir would only move files with the .sql extension ...
1
vote
2answers
59 views

Using msiexec to uninstall programs

I have found a batch file that removes a lot of bloatware etc. Example: start /wait MsiExec.exe /I{DB731A07-34DE-4BE0-AE94-45C83E28A56C} /quiet I guess the {DB731A07-34DE-4BE0-AE94-45C83E28A56C} ...
0
votes
0answers
42 views

Batch file can't find specified path when run from excel hyperlink

I have an excel file that has a list of IP addresses and I have linked a batch file that runs a simple ping test and outputs the results to a text log. When I run the file from the network location ...
3
votes
1answer
77 views

How to make ConEmu attach on start

I have an existing .bat file which uses the start command to launch multiple tasks, e.g.: start cmd.exe /k "echo task 1" start cmd.exe /k "echo task 2" start cmd.exe /k "echo task 3" What happens ...
0
votes
0answers
25 views

Trigger UAC for a command in a batch

If I run in a batch the command: REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead from a batch I get the error: ERROR: Access is denied. If I select Run as Administrator, it works. ...
1
vote
2answers
62 views

Ampersand in Windows Password

I have a password for a Perforce account which contains an ampersand (&) and when I try to use certain P4 commands, I get the following error: Perforce password (P4PASSWD) invalid or unset. I ...
0
votes
1answer
40 views

Finding Files by wildcard name and copy them

I've got a program that compiles itself and generated .exe files in its subdirectories (such as release_win_* directories for every application "App1", "App2", etc.). I'd like to find specific these ...