Reputation
1,166
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 9
Newest
 Nice Answer
Impact
~190k people reached

Apr
8
answered It doesn't print the increased value of a variable in the for loop of batch file
Apr
4
comment Get directory containing the currently executed batch script
@Mohammad: Indeed, it is the current directory. The other one is the directory where the batch file is. Those two are not the same and your question asks explicitly for this one. So please edit it if that is not what you mean.
Mar
29
comment Split string line read by a batch file
You can also start a block with an opening parenthesis after the do.
Mar
29
revised Help for batch file
added 291 characters in body
Mar
29
revised Help for batch file
spelling, removed greetings, etc., formatting.
Mar
29
suggested approved edit on Help for batch file
Mar
29
answered Help for batch file
Mar
21
answered Windows Command SC, how to check errorlevel
Mar
21
comment Why does the Windows command line change the command when running from a .bat file?
+1. Indeed, cmd is just clarifying here (especially the 1> part). The statements are identical.
Feb
21
answered Stripping lines from text file with Powershell
Feb
21
comment Stripping lines from text file with Powershell
Note that you may want to specify an encoding to Out-File in case some programs choke on UTF-16.
Feb
7
comment powershell or bat - counting files in all directories and subdirec
@I__: I have fun solving complex tasks in archaic or limited languages. Note though that this won't work for two directory trees within the same cmd session since it's all just environment variables I don't reset after use.
Feb
5
answered powershell or bat - counting files in all directories and subdirec
Feb
5
comment powershell or bat - counting files in all directories and subdirec
It'd be even more awesome if it supported agrregation without needing to go through group|foreach{$_.group|foreach{$_|Add-member ...}}
Feb
5
comment Better way to wait a few seconds in a bat file?
I have yet to see a recent version of Windows that didn't have at least IPv4 installed. ping -n 6 127.0.0.1 works fine to sleep 5 seconds, even if no network interface has a connection.
Feb
5
comment Better way to wait a few seconds in a bat file?
It waits x − 1 seconds.
Feb
5
comment Better way to wait a few seconds in a bat file?
timeout also is only available from Vista onwards.
Feb
1
comment Hidden Features of PowerShell
To be fair, though, treating text files in UTF-16 as binary files is a bug in Subversion. Yes, it makes life harder at times but ultimately it's not to blame on tools that choose a perfectly acceptable character encoding.
Jan
26
answered Locale-unaware %DATE% and %TIME% in batch files?
Dec
23
comment how i can get folder and file name in windows and store it in variable?
Or simply gci <path> | select Name.