Hi All,
I want to assign the alpha numeric value to one variable in Batch scripting.
I tried following one but getting error.
setlocal
set test = \765514e2aad02ca658cc56cdb7884947 *E:\\test1
echo %test%
endlocal
Error:
C:\Users\bgannu>setlocal
C:\Users\bgannu>set test = \765514e2aad02ca658cc56cdb7884947 *E:\\test1
C:\Users\bgannu>...
Ok it seems that whenever I tell ffmpeg to take a screen cap half way though the clip (clip can be as long as 10 hours) it uses 100% of 1 cpu core and takes ages… whereas if I let it do a frame at the start it goes real quick, as if it scans though the video to get to the middle instead of just jumping to it!
Here is the code im current...
@echo off
for /f "tokens=1,2 delims=," %%x in (my.csv) do (
if %M% LSS %%x set M=%%x
)
echo Max X Value= %M%
Sometimes it works fine, sometime not with following error!!
%x was unexpected at this time.
...
Hi,
i want to do the following from a Windows batch script:
start proc1.exe
start proc2.exe
...
start procN.exe
<wait for all N processes to complete> <-- What do i put here?
So how do i wait for all spawned processes to complete?
TIA.
...
I have a problem executing two parameterized questions in one batch using SqlCommand in ADO.NET. (I want to reduce round-trips and avoid pinging)
Since I don't want execution plan pollution I expect ADO.NET to transform my CommandText from
"stmt1; stmt2" with all parameters belonging to stmt1 and stmt2 added to SqlCommand.Parameters
t...
subject score studentid
xx 23.22% 1
yy 34% 2
zz 55.2% 3
xx 88.66% 4
yy 23.76% 5
zz 78.04% 6
How to get max % and student id for each subject?
...
Hi All,
I want a batch script which will extract the first 30 characters from a file.
Requirement:
there is one file called test.txt and it's content is
\765514e2aad02ca658cc56cdb7884947 *E:\test1
now I need a script which extract only \765514e2aad02ca658cc56cdb7884947 from the above file
Thx in advance
...
I have a bat script which at one point redirects the stderr of a process to the stdout, and then writes it to a file. I used to do it like this:
process.exe 2>&1 > file.txt
However, this doesn't redirect the stderr to the file ( for reasons I can't understand ). When I modified the line to :
process.exe > file.txt 2>&1
The whole t...
I have a whole lot of XML files, badly indented.
I wish to write a script or use a tool which re-indents all the files.
Is there such a tool, or a nice library in a mainstream scripting language (preferred are Ruby and Python), or in Java ?
...
Hi All,
Is it possible to change the font color of text while redirecting it to WordPad?
Examples:
C:\echo greencolor >> C:\colors.rtf -----> This text should appear green in WordPad
C:\echo redcolor >> C:\colors.rtf -----> This text should appear red in WordPad
C:\echo browncolor >> C:\colors.rtf -----> This text should appear brow...
Hi All,
here is me requirement.
I have one text file and I need to get exact specified string from that file
C:>type small.txt | find "small2"
small2
small22
small20
C:>type small.txt small2
small22
small20
C:>type small.txt | find "small2" small2
small22
small20
C:\
Here it is giving all the words instead of only "small2"...
I have a C# console application AAA.exe which can return an integer to indicate the result
static int Main(string[] args)
{
. . .
if(case1)
return -1;
if(case2)
Environment.Exit(1);
return 0;
}
I will call AAA.exe in a batch file and need the return value
AAA.exe /p="param1"
My question is:
how t...
Hi
I have written a method insert() in which I am trying to use JDBC Batch for inserting half a million records into a MySQL database:
public void insert(int nameListId, String[] names) {
String sql = "INSERT INTO name_list_subscribers (name_list_id, name, date_added)"+
" VALUES (?, ?, NOW())";
Conn...
This is my first time trying to use Informix. I have around 160 tables to load, using pipe-delimited text files. We have an older series of batch files that a previous developer wrote to load Informix data, but they're not working with the new version of Informix (11.5) that I installed. I'm running it on a Windows 2003 server.
I've mo...
Hi I need to build a site similar to indeed.com and so many others, that tracks a number of advertising sites and parses the HTML to list the ads in my own site.
I know that each source-site needs a particular strategy. That's no problem. My concern is that I want to scan the sites hourly in a batch-fashion.
Is there a better suitable...
Hello,
how can I execute a batch-file or just some (e.g. twice) commands in a job of Hudson (running on windows xp, as a non-service, but may change), that the environment just stays for the whole build.
I need to do this, because I have to change the current path with 'cd' (we are using relative paths in our proj) and 'set' some envir...
Apologies my french english ...
I would like to create an alias in Windows XP cmd, like Symfony.
This code works perfectly, but resets every system boot :
doskey kCLI= php C:\wamp\www\KinkamaCLI\KinkamaCLI.php
I tryed to put a .bat in "start" folder, but I think it's not beautifull, and I feel it doesn't work, because I can't see th...
Hello I need a batch file to store in a variable all paths of all directories/subdierectories named ".svn" that I can found in my_folder.
Something like:
@ECHO OFF
FOR /r my_folder %%X IN (.svn) DO (ECHO %%X)
the command above prints them to screen, but I need to store them in a variable as a list of strings. Someone knows how to do ...
Is it possible in batch file to call more than one command in a single FOR loop, let's say for example I want to print the file name and after delete it.
@ECHO OFF
FOR /r %%X IN (*.txt) DO (ECHO %%X DEL %%X)
REM the line above is invalid sintax.
I know in this case I could solve it by doing two distinct FOR loops: one for showing the ...
I am automating the printing of jpg files using a windows batch file and the command line interface for the Windows Picture and Fax Viewer. The command I'm using in my .bat is:
rundll32.exe C:\Windows\System32\shimgvw.dll,ImageView_PrintTo /pt "%fullpath_to_jpg%" "%printer_name%"
My photo printer does 4x6 prints. If the jpg file is ...