Text file containing a sequence of commands or program invocations.

learn more… | top users | synonyms (1)

0
votes
2answers
68 views

WinSCP script hangs when connecting to host

I've batch script that runs winscp with script, and sometimes WinSCP hangs when is "Connecting to host". Is it possible to set timeout that WinSCP stops trying to connect and shuts it's self after x ...
-1
votes
1answer
33 views

Grab filename for manipulation

Similar to my request here I'm looking for a way to take the name of a numbered file and use it else where in a batch script. For example, in a folder there would be a file named 159 and I would ...
0
votes
3answers
52 views

Multiline && combinator operator for command chaining in batch file

I see that this operator is used in windows (and might be Linux?) to chain/combine multiple commands in one line. Commands are executed one after another, as long as preceding complete successfully ...
0
votes
2answers
71 views

How to make batch file to open specific Profiles in Google Chrome

I have .BAT batch files to open a set of programs, web pages and explorer windows. With sufficient Googling I've still come up short as how to execute the profile target "C:\Program Files ...
0
votes
0answers
38 views

How to improve a batch file

I wrote the following batch file below in order to clean temp files and clear cache. Problem is that when someone downloads this file he gets a notification that this file may harm his/her computer. ...
0
votes
1answer
54 views

How to run typeperf from batch file?

How to run commands like typeperf "\Process(*)\% Processor Time" -sc 1 from batch file? Ran from command line this command outputs something monstrous, while ran from bat file it prints Error: No ...
-3
votes
2answers
37 views

Create windows script to traverse all subfolders of some folder, and delete a certain folder and all of it's contents if it exists [closed]

here's the trick. Supposing I want to free up some space, and run that script in F:\UnrealProjects, which has a bit over 50-60 subfolders, I would like that script to traverse all of it's subfolders, ...
-1
votes
1answer
34 views

How to delete all files that match a pattern (or older than..) except the newest file that matches the pattern?

I have a scheduled task / script running that takes a snapshot of a file each 3 hours, but the file is growing and disk space is limited, so each week I want to perform a cleanup. As for now I do ...
0
votes
1answer
11 views

How to rename multiple vars that contain FOR counter vars in bat file

Here is my sample: set mail = mymail for /L %%x in (001,1,999) do ( set yourmail = !mail:+%x@gmail.com :: other commands here ) I want the result be like: mymail+001@gmail.com ----> ...
0
votes
1answer
74 views

Rename files using batch file

I have been searching for a way to rename 150 files daily simply by executing 1 command. The current files are in the same folder C:\reports. The file names differ and the only change I have to make ...
0
votes
0answers
36 views

Task Scheduler running a bat file that duplicates screen

When you lock a computer on windows 7 your login screen appears on your main display and then on other monitors it is completely black, when your displays are extended. This problem is fixed when you ...
1
vote
1answer
38 views

Bulk Download Images with Organization

I have a list of URLs (pretty much all image urls though some pdf) that I need downloaded. I have found a variety of options for bulk downloading and these would work but I need them to be organized ...
0
votes
0answers
24 views

Email alerts using Blat command

I tried to use below blat command to configure blat in command prompt for sending email alerts. --blat -install SMPT.XXXXX.com NAG@mail.com -but is is showing below message "Blat is not recognized as ...
0
votes
1answer
89 views

Running .bat file in zsh (in Windows)

On a Windows machine I want to avoid using cmd.exe at all cost. I'm trying to use babun (mintty 1.1.3) to run a batch file in a Windows folder. This works: { ~ } » ./file.bat -o /path/to/files.xml ...
0
votes
2answers
20 views

How to restrict changing env variable locally by batch file

I have two batch file x.bat and y.bat. I m calling y.bat from x.bat. File y.bat sets an env variable like: set ABC= Restriction is I cant change this Y.bat file but I want my variable "ABC" to be set ...
0
votes
1answer
41 views

How to Access “My Computer” files from Command Prompt

I'm trying to figure out how to access files on "My Computer" from the command prompt. In particular, I want to access files on my phone's share, e.g., My Computer\SAMSUNG\Phone\somefile.txt. That ...
0
votes
0answers
42 views

My batch files keep instantly closing, and there is no .bat association under FileExts

I am trying to launch a batch executable, but my PC shows no .bat association in the registry. Recently, I started off by simply modding my Star Wars: Battlefront 2 game. Eventually, it asked me to ...
2
votes
1answer
324 views

FreeDOS AUTOEXEC.BAT

I am using a FreeDOS floppy boot disk made from sys.com of FreeDOS (I am using them on virtual box and floppy disk is virtual). I have wasted all my day trying to make an AUTOEXEC.BAT which loads ...
0
votes
1answer
49 views

Using Win8.1Pro Batch: Unable to verify if BitLocker has already applied encryption

I'm working on a script that assists in standardizing a Windows 8.1 Pro image. In this part I'm trying to verify if BitLocker has already encrypted the drive or not using the following script: ...
0
votes
1answer
47 views

Windows 8.1 batch checking if computer is part of a workgroup and changing if necessary

I've got SYSTEMINFO | FIND /I "DOMAIN:" which displays if it's part of a Domain or Workgroup. But I'm trying to figure out how to take the result of that and if it's anything other than Company.LLC to ...
0
votes
1answer
15 views

How can I set the default Windows8 default open file to insert the file name in a command line oneliner?

When I double click files of the type .xise, I need my system to execute the following: C:\Xilinx\14.5\ISE_DS\settings32.bat C:\Xilinx\14.5\ISE_DS\ISE\bin\nt\ise.exe PATH\TO\XISE\FILE\filename.xise ...
2
votes
1answer
69 views

Batch why <nul breaks my file

Well guys i am basically trying to get user input and type it on the batch I will be using backspace and enter so i cant use choice Thats why i am following this method To capture characters as ...
0
votes
0answers
25 views

Send dynamic argument to an application through its shortcut

I am trying to create a shortcut link which will run/open Command Prompt (cmd) as Administrator having present working directory (PWD) set as the supplied folder path. What I have done: Created a ...
0
votes
2answers
303 views

Opening random file from folder AND subfolders with batch script (Windows 7)

I want to get a bat file that will open a random file (with any extension) from a specific folder, but also open files in all subfolders within that folder. There's another question that asked ...
1
vote
1answer
59 views

How to answer batch file [closed]

I lost my administrator right's in recovery. I learned of the super administrator surfing the net and got access using command line. I got a reply :The syntax of this command is: and then it list's ...
0
votes
1answer
44 views

Getting missing operator error in my batch decryptor

This decryption program gives a load of missing operator errors. What is wrong? @echo off setlocal EnableDelayedExpansion ::OS_sertificate set code=494715842 set /p sertificate=input set ...
0
votes
1answer
104 views

Turn ON display with a batch or powershell

We have a computer connected to a large vizio flat screen that displays secure information and it is always on. I have a script running with task scheduler to shut off only the display at a certain ...
1
vote
1answer
35 views

How do i copy a specific word/number from a TXT file using Batch?

I need to search for a specific nubmer that comes after a string in a text file. For example I have this data: yyy = 80rr, xxx = 136rr, zzz = 95rr and i want to copy the numbers that between ...
0
votes
2answers
34 views

Split command output in batch

I have this command that gives lists of directories and their filepath: for /d %%D in (C:\OS\system\DisplayLanguages) do echo %%~fD I need to separate the last part of the output eg. ...
1
vote
1answer
48 views

Special characters in batch

I'm using windows 7, and I'd like to create menus, progress bars, etc. with special characters like this. How to do this?
1
vote
1answer
36 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
44 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
33 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
35 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
404 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
136 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
2answers
167 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. ...
0
votes
1answer
47 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
45 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
58 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
121 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
17 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
71 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
202 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
92 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
64 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
107 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
58 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
45 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
36 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?