Script files that are executed by the Windows command-line interpreter.
0
votes
2answers
20 views
repeating variable issue in windows batch file
I have the following code in a batch file:
set /p user="Enter username: " %=%
cd w:\Files
@echo off
setLocal EnableDelayedExpansion
set /a value=0
set /a sum=0
set /a ...
3
votes
2answers
851 views
Secure FTP using Windows batch script
I currently have batch scripts on different servers that transfer a csv file to an FTP server at a different location. My script looks similar to this:
echo user ftp_user> ftpcmd.dat
echo ...
0
votes
2answers
10 views
String manipulation using batch
Below is the crud output of my batch script
"kxip12","triss-s16-vm","","triss-db02-vm","false","true","false","MySQL","false"," "," ...
0
votes
2answers
9 views
How to delete all files in a directory using batch?
I have a very simple query.
I have a folder "x" on my desktop (Windows 7),
and I want to write a Batch Program to delete all files in it. (all extensions)
This is what I've come up with:
cd ...
0
votes
3answers
17 views
Read items into a file whose name contains some space from a batch script
I need to read items inside some files from a batch script. The name of certain items' file contains some spaces. To do that, I use the file name as a parameter, which is surrounded by double quotes ...
0
votes
1answer
258 views
Sharepoint batch delete
I’m trying to perform a batch delete operation on SharePoint 2007/2010.
When I execute the following using the List.asmx -> UpdateListItems I get mixed behavior:
`<Batch OnError="Return" ...
0
votes
0answers
23 views
Skip the pause command in a batch from a java process
I'm using the java Process class to execute some batch files. I'm using the ProcessBuilder to create the process and this part run fine. My problem is to deal with the pausecommand in the batch file ...
1
vote
1answer
13 views
bat files, functions and caret symbols
Whats's going on?
helper.bat
@echo off
echo %1
call:foo %1
goto:eof
:foo
echo %1
goto:eof
Run our script like the following
helper "^^^^"
Output
"^^^^"
"^^^^^^^^"
Why? I ...
0
votes
1answer
10 views
Running Access VBA sub from Batch
I have about 8 Subs inside my access file that I would like to run externally from a batch file.
I have little experience with Batch so am not entirely sure where I start writing this, does anyone ...
0
votes
0answers
31 views
Check Status of the File Based Write Filter with a Batch-File via a numeric value
I enable, disable and check the status of the FBWF with help of batch-files. That works fine.
The return value of fbwfmgr /displayconfig is a text message, that tells me the status of the FBWF in the ...
0
votes
2answers
18 views
How to retrieve substring from a string in Windows batch file?
How do I retrieve the string "C:\Program Files (x86)\Stupid\MS\" from the following input?
HKEY_CURRENT_USER\Software\Stupid\MS`
installpath REG_SZ C:\Program Files (x86)\Stupid\MS\`
...
0
votes
1answer
21 views
Batch scripting for installation of a software with some options
I am using the below script to silently install a install4j application:
start "C:\Temp" /WAIT Installer.3-00-00.Windows.exe -q -dir %localdir%
However, this works perfectly but now i want to ...
0
votes
1answer
15 views
How to stop running tomcat using batch file?
I have installed tomcat 6 using tomcat6.exe file.
From the location, am able to run tomcat by double clicking on Tomcat6.exe
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin
I just ...
0
votes
0answers
20 views
jdbc batch update exception
My data will cause the incorrect string value exception, but I just want to ignore them.
With same piece of code for batch update, I will lose whole batch for a MySQL server when this exception ...
0
votes
1answer
22 views
Something wrong encoding using PowerShell
I have a bat file where I encode some CSV files to UTF-8, and then import the files to a SQLite database.
This is the code I have:
echo Codificando ficheros...
powershell -Command "&{ ...