Script files that are executed by the Windows command-line interpreter.
0
votes
1answer
9 views
Bat file list file names
Hi everyone im trying to create a .bat file that would list all the files in each folder and add some text after each line into a txt file like something like this
f(1).bmp 1 1 1 100 100
f(2).bmp 1 1 ...
0
votes
2answers
18 views
Batch file to execute command after process end
I'm making a batch file that starts a program, for example notepad.exe . I need it to execute a command after i have closed notepad.exe manually.
I only know that in order to do this, the batch file ...
3
votes
1answer
23 views
How to make shared memory for multiple batch files running simulteneously?
I am trying to run a tagger through batch file for different file to do so I am creating a
batch file
and running tagger through it.
and this is my code..
String runap1="cd spt1"+"\n"+"java ...
0
votes
1answer
17 views
How a get full path of hidden files?
I want get a full paths of files, including hidden files and folders with specific extensions in one folder and print this path. How I can do this?
0
votes
1answer
25 views
Pass the value of variable to calling java code from .bat file
I have the following scenario.
Java --> main.bat --> sub.bat
sub.bat--> main.bat-->java
the main.bat looks something like this
call sub.bat c:\sample.txt value1
echo %value1% <--does not work
...
0
votes
1answer
28 views
batchfile taskkill /IM cmd.exe not closing cmd.exe
I have a batch file which moves a few files and starts a program and for some reason, after the batch file goes through all the commands in it, it doesn't close. The command prompt remains open on the ...
0
votes
1answer
29 views
DEL “%~f0” at end of post-build batch file causes error code 1
I'm currently trying to create a post-build script in Visual Studio to clean up the directory I build releases to. The batch file executes fine and all expected behaviour takes place but in Visual ...
0
votes
2answers
26 views
Batch check if a variable is negative
i have a little problem in batch and i don't find a way to solve it !
I'm working on a point system and just need a string that checks if a variable is negative.
It would be something like this :
set ...
0
votes
2answers
41 views
Chose start position of search
I'm trying to make a script that first searches after a string then starts a search for a different string on the lines after the first strings position.
String1 only occurs once but string2 occurs ...
2
votes
2answers
32 views
How to return value from one batch file to caller batch file
I have a common .bat file that reads the status.xml file and finds out the value of the status field. This batch file is then called by other batch files for finding out status value. the calling ...
0
votes
1answer
19 views
Search and Delete registry keys based on ProductName value
to preface this, its been a few years since I've programmed, so I apologize for anything I miss, I will check the thread consistently and edit the origianl post to have the best information I can.
I ...
0
votes
1answer
22 views
Executing the same batch file in all subfolders with spaces in the subfolder names
I have many sub-folders in a root folder and I want to run the same batch file in each sub-folder.
The sub-folders might well have spaces in their names.
The batch file I want to run just appends all ...
0
votes
1answer
22 views
Parsing long json string in batch
I have a problem, what I'm trying to do is just parse some values from JSON using batch...
I'm obtaining a JSON file by calling:
curl -G http://xxxxxx.xx/xx/xx
That calling returns a string which ...
0
votes
1answer
33 views
How do I find and replace text?
I need to make my batch file replace a setting in "config.ini" for example:
color = 1A
how can I find and replace ONLY the 1A part instead of making another line.
-1
votes
0answers
13 views
Is there a way to easily automate copying files to an android tablet that shows up as a “device”, not a drive?
I'd like to copy file(s) via a batch file from my PC to my Acer Iconia tablet, but that obviously does not work because it does not show up as a drive. Is this even possible?
There are two ways I can ...