1
vote
1answer
59 views

Problems using a batch file For loop to feed .tifs into a GIS process (gdal_polygonize)

Thanks in advance for your help with this. I've been reading, experimenting, and banging my head against the wall for a couple days on this, and could really use some assistance. This is my first ...
0
votes
1answer
260 views

Batch to prompt for folder name and command, redirect to TXT file

What I'm trying to accomplish, is to have the batch file prompt the user to input their specific folder on our team's directory, and then prompt for a specific command to be used, and redirected to a ...
0
votes
2answers
1k views

Batch command to delete files from file list [duplicate]

This code works fine. it deletes files from a file list: For /f %%a in (file.lst) do del %%a But why is the below one not working? It deletes the .lst file itself: if exist file.lst ( set ...
0
votes
2answers
260 views

IF statements in batch files

I am currently using Cruise Control to schedule 'builds' for various internal websites. I use batch files to kick off each of these 'builds' (build meaning a specific webhelp output). Let's say ...
0
votes
1answer
607 views

Insert given variable from batch into existing xml file

Here is what I am trying to accomplish...if this can be accomplished with only batch...for now? Instead of actually renaming the client here from the netdom statement, I want to INSERT the ...
0
votes
1answer
168 views

User input in batch file

I have a batch file that looks like this, which takes a picture of a webpage and crops it: cd C:\users\***\Downloads\IECapt-2008-06-10 IECapt --delay=10000 --url=http://test.com/picture.swf?id=1 ...
2
votes
2answers
2k views

is there any tool that allows redirecting output to env variable in windows *.cmd script?

I mean to use it like this: echo some data | this-tool-m-searching-for -vn myvariable or time | this-tool-m-searching-for -vn current_time etc.. and then echo %myvariable% would produce some ...
4
votes
1answer
10k views

Get file version from Windows command line for use in a variable?

How do grab the file version/product version from a file on the Windows 7 command line, to be used in a variable in a .bat file?
4
votes
1answer
110 views

Using a system variable with spaces without truncating prematurely

I need to do something similar to this: dir > %USERNAME%.txt But what I get is that if the filename has a SPACE(" ") in it, then the name is cut there. I know that if I do this: set ...