Script files that are executed by the Windows command-line interpreter.

learn more… | top users | synonyms (8)

0
votes
0answers
3 views

SETX PATH doesn't work on Windows 7 64 bit

SETX work fine in Windows 7 32 Bit but doesn't work on 64 bit. it's my .bat file content : setx PATH "%%Program Files%\MySQL\MySQL Server 5.5\bin%;" Doesn't get any error but doesn't work.
0
votes
0answers
5 views

I want to loop through a file assigning a variable to specific tokens, then use the variables in a command line

I am a newbi and apologize if I am not asking the question correctly, but I want to loop through a list, assigning a variable to specific tokens in that list, then pass the variables to a command ...
0
votes
1answer
6 views

On IIS, batch file variables do not seem to be working.

I am building virtual directories for a setup using the following: echo "Current Drive: %~d1" set /p var cdr="Enter Install Directory " cd %windir%\system32\inetsrv appcmd add vdir /app.name:"Default ...
0
votes
1answer
29 views

How can I cd into a directory that i created before in my batch file?

it's the first time that I write a little script in batch, I need to create a folder named like the date, then I want to go in that directory and run the dump of my database. Here my code: cd ...
1
vote
0answers
20 views

associating files to a program from python

So, I have written a python app that runs on system startup on Windows7/8/Vista/XP. The first time it is ran, I want it to associate a few file types/extensions with a certain program which is on the ...
1
vote
2answers
17 views

Grant Access to a MySQL user by batch-file

I have trying to make GRANT ACCESS to a MySQL Server user. I have wrote following command in mybatch.bat : @echo off cd / c: set mysql_cmd = "GRANT ALL PRIVILEGES ON mydatabase.* TO ...
0
votes
2answers
22 views

My exe does not pass anything to logfile (jampded.exe)

I want to create a simple handler for my game server. It will read the console directly and take any action i want. BUT! I can't pass the output from the server to my exe or txt. ping google.com > ...
0
votes
1answer
27 views

Get current batchfile directory

First, I saw this topic (What is the current directory in a batch file?) but i can't understand that. There is a batch file in D:\Dir1\Dir2\batchfile.bat with below content : echo %cd% pause ...
0
votes
1answer
21 views

Making log file in batch after a MOVE operation

I just need some help with creating a log file for a batch script I'm running at the moment. As I move files from 1 server to another it would be handy to know when things have been moved over. At ...
1
vote
1answer
21 views

Passing Batch output to exe

I would like to create a batch file that is able to send its output directly to and exe, which will handle the information. For example: I ping google.com 100 times and want to parse each response ...
1
vote
2answers
26 views

Batch files datetime

I have written a batch file. It's my first one so I still suck at this. What it does it copies a database backup file from a unc folder path and paste it to my local machine. The file name changes ...
0
votes
0answers
21 views

scheduled task to perform if-else task in windows

I have a program that I need to replace a file in its directory with a new updated same file each hour. If the program is opened I can't do the replacement process. So, I need a script that do ...
0
votes
2answers
27 views

Running an .exe file through a batch file and passing parameters

I have an .exe file that takes two parameters when i run it from the command line, as such: test_app.exe -vid.avi -data.txt How would i be able to START the .exe file through a batch script and ...
0
votes
2answers
29 views

Batch File to list folders and allow user selection

I have searched and searched to find a solution to (what feels like) a unique problem. Many answers here have been quite helpful and have gotten me a long way, but the last bit has me stumped. My ...
0
votes
3answers
35 views

Batch file for loop unable to assign values from external file

So, I've got this basic text file called prev_batch.cfg that I want a batch script to read. prev_batch.cfg is a single line of text, but tokens are delimited with a comma. It looks something like: ...

1 2 3 4 5 684
15 30 50 per page