Tagged Questions
0
votes
0answers
2 views
Copying and renaming a file into the proper subdirectories
I have a particularly tricky batch scripting request. I have a file/folder structure like this
/mapcfgs/
/folder 1/
somefile.new
somefile.old
/folder 2/
someotherfile.new
...
1
vote
2answers
52 views
Merge Two text files line by line using batch script
I have 2 text files; A.txt and B.txt and I want to merge them to make C.txt using a batch script.
However (here's the tricky part) I wish to do it so each line from A.txt is appended with a space ...
0
votes
2answers
29 views
Replacing a string in all config files across machines with a script
I have the below task and I am wondering what would be the best and quick way to do this. I am thinking scripting rather than a C# app but struggling with scripting in DOS. I wanted to use powershell ...
0
votes
1answer
15 views
Batch print out exit code of the scipt
Hi lets say i have batch script that returns 0 on success and 1 on error
and i want to print/pass exiting value to console/another command
something like
echo script param1 param2
expected output
...
0
votes
2answers
17 views
saving output as variable
I am working on a batch script and am trying to save part of the output of a command as a variable. My current script requires the user to enter a site code (e.g. 853), and it takes that code and uses ...
0
votes
1answer
40 views
vbscript to get the files in a format from ftp with today's modified date
I have a requirement to get the files in a specified format from a ftp using vbscript. Can any one help me on this.
I have to get files with name format VarList12DDMMYYYY******.csv, ...
0
votes
2answers
48 views
How to replicate a directory structure using xcopy in windows
I have a text file containing a list of folders.My text file looks like this:
"D:\old\FOLDER1"
"D:\old\FOLDER2"
"D:\old\FOLDER3"
"D:\old\FOLDER4"
"D:\old\FOLDER5"
all these folders have ...
0
votes
0answers
45 views
Illegal Method name when running scala windows batch scripts that resolve dependencies
I am trying to have scala scripts run within my windows environment. I was adapting the methods described here and here
So I've copied and modified my sbt.bat file into scalas.bat, and added the ...
0
votes
4answers
27 views
Variable usage in batch file
I'm working with a fairly simple batch file in Windows 7, where I want to be able to define a few variables and then use them in a command. This is the code I have so far:
@ECHO OFF
set ...
0
votes
2answers
29 views
Retrieve seconds, along with date and time in CMD?
I'm trying to ping an IP, and receive the time date and seconds to a file.
I'm running the command date/t&&time/t&&ping That gives me 09:50 PM and Sat 05/25/13, but is there anyway I ...
0
votes
1answer
25 views
Remove Directory Command is not working as expected
I have following batch script. It takes data from C:\Source into C:\MyTEST\A\webroot\payrollservice.The source folder has two files 1. Web.config and 2. Web_PROD backup.
In the roll script there is a ...
0
votes
3answers
37 views
Storing results of multiple commands in a single file
I have a batch file with two commands as listed below.
ping google.com > C:\Test\logfile.txt
ping yahoo.com > C:\Test\logfile.txt
When I run it (in Windows XP), only the result for the ...
1
vote
3answers
41 views
Whats the windows equivalent of this simple bash string manipulation?
I'm once again, wishing I could use bash while trying to do some windows batch stuff. What's a short, windows batch equivalent of this Bash expression?
$ var="EIPADDRESS=192.168.20.139"; ...
0
votes
4answers
135 views
Batch (Windows) execute script wait for request and input the answer
the problem:
I want to create a batchfile that executes other scripts. Then only problem is, you can not give the necessary input by parameters. The scripts ask for some data along the way. Is there ...
0
votes
1answer
28 views
Batch script network file
I have a batch script which I am trying to open a file (powershell script on a network location). If I put the path as a local c:\test.ps1 it works fine but I cant seem to get it to work with the ...