560 reputation
211
bio website
location United States
age
visits member for 2 years, 7 months
seen Nov 10 at 17:28

I am currently a C++, C#, Java programmer in the U.S. Healthcare industry. While working daily in compiled languages, I Love to use Batch whenever possible. Because why not? Also enjoys disassembling most anything to see how it works.

The best answers always follow the Keep It Simple principle.


Sep
30
awarded  Explainer
Aug
12
awarded  Popular Question
Apr
11
awarded  Yearling
Mar
11
comment Properly close (not kill) programs from the command line
@Roger If interested, see my answer here on how to combine Batch + JScript into a single file. JScript can do most anything VBScript can do and in a more structured C style.
Mar
11
comment Properly close (not kill) programs from the command line
> is the redirect operator for the cmd.exe and nul is the void of space where things go to never be heard from again.
Mar
11
comment Properly close (not kill) programs from the command line
@Roger updated my answer.
Mar
11
revised Properly close (not kill) programs from the command line
added 611 characters in body
Mar
11
answered Properly close (not kill) programs from the command line
Oct
17
comment Ansicon vs. Batch File
My guess is that ansicon is failing to hook into the cmd.exe process for the batch file execution. -p What happens when you run ansicon -p on the command line and then run the bat file containing the chcp and prompt commands? ANSICON Documentation
Jul
3
awarded  Autobiographer
Jun
18
revised reg query; Windows 7 vs Windows XP
Edit
Jun
18
comment reg query; Windows 7 vs Windows XP
Also, I would recommend some variable name changes to express true registry naming. See pastebin.com/XAfVqiex
Jun
18
comment reg query; Windows 7 vs Windows XP
+1 I like it :) Much more efficient than mine. Do note that I had to make a few changes to get it to work though. Replace everything within the second for loop with IF %keypos% gtr %%i SET "main=%%j". Then DELAYEDEXPANSION, the last variable, and the mainpos variable are not needed
Jun
18
comment reg query; Windows 7 vs Windows XP
Are you sure it is hanging and not just really slow. To check remove the > nul from the script and you can watch its progress. It is slow due to poor handling of echo piping by Windows XP.
Jun
18
comment reg query; Windows 7 vs Windows XP
It works fine for me on Win XP SP3 x86. Crash how? Closes the command line?
Jun
18
comment reg query; Windows 7 vs Windows XP
Indeed it seems like an odd move from SO to SU for this question.
Jun
18
comment reg query; Windows 7 vs Windows XP
I fixed the script :)
Jun
18
revised reg query; Windows 7 vs Windows XP
Fixed Script
Jun
18
comment reg query; Windows 7 vs Windows XP
Doesn't work how? What is the error message? Note that you must have "EMC Avamar for Windows" installed to see any results or change that string to something you do have installed. Works just fine for me.
Jun
18
answered reg query; Windows 7 vs Windows XP