Search found 4315 matches

by Squashman
02 Jun 2012 20:45
Forum: DOS Batch Forum
Topic: how to replace all occurrences of ;;;; with ; in a string
Replies: 36
Views: 25500

Re: how to replace all occurrences of ;;;; with ; in a strin

Aacini wrote:PS - Did you realize that original topic requested to change semicolons, not commas :?: :wink:

The thread title shows semi colons but his initial question showed commas for the example and he even said commas.
by Squashman
02 Jun 2012 20:34
Forum: DOS Batch Forum
Topic: error in for loop
Replies: 18
Views: 12770

Re: error in for loop

Was probably reading a Unix help page. A Backslash with a T represents a TAB.
by Squashman
01 Jun 2012 18:41
Forum: DOS Batch Forum
Topic: How to use output of last command
Replies: 7
Views: 5473

Re: How to use output of last command

Fawers wrote:
skwirrel wrote:it's always cooler when you can run something you made yourself :).

True.

0 :mrgreen:
by Squashman
01 Jun 2012 13:56
Forum: DOS Batch Forum
Topic: how to replace all occurrences of ;;;; with ; in a string
Replies: 36
Views: 25500

Re: how to replace all occurrences of ;;;; with ; in a strin

MrKnowItAllxx wrote:Call me lazy, but I didn't want to read 2 pages of comments, so I'm posting this solution w/o knowing if it has been suggested already

I will let Dave be the Judge of that. :lol:
by Squashman
01 Jun 2012 06:03
Forum: DOS Batch Forum
Topic: Any way to identify an application by Window title?
Replies: 4
Views: 9026

Re: Any way to identify an application by Window title?

TASKLIST help shows exactly how to use the FILTERS. Do you expect Microsoft to put every possible filter combination into the examples when really only one is needed. It works the same for all the Filters. It would be redundant! Filters: Filter Name Valid Operators Valid Value(s) ----------- -------...
by Squashman
01 Jun 2012 05:50
Forum: DOS Batch Forum
Topic: How to use output of last command
Replies: 7
Views: 5473

Re: How to use output of last command

Code: Select all

@echo off
FOR /F "Tokens=3 Delims=-" %%G in ('mp4box "files\12 S01E01 Pilot - Schijn Bedriegt.mp4" -info 1 ^|findstr /C:"TimeScale"') DO echo %%G
by Squashman
31 May 2012 20:30
Forum: DOS Batch Forum
Topic: [help] i need to extract data from a text file via batch
Replies: 38
Views: 23982

Re: [help] i need to extract data from a text file via batch

cheeseng wrote:Dear Foxidrive and Aacini,
You guys are ROCK!!!


You just called them a rock as in a physical earthly hard object instead of saying they ROCK as in the musical reference.
by Squashman
31 May 2012 20:03
Forum: DOS Batch Forum
Topic: {solved}Broken Batch File
Replies: 3
Views: 2543

Re: Help! This batch file suddenly broke, I don't know why!

Not on a pc right now but I am pretty sure since you are copying to the system directory the batch file would need to be run with elevated privileges on Windows 7.
by Squashman
31 May 2012 19:55
Forum: DOS Batch Forum
Topic: Any way to identify an application by Window title?
Replies: 4
Views: 9026

Re: Any way to identify an application by Window title?

Pretty sure if you read the help from the cmd window you could see some examples.
by Squashman
31 May 2012 15:52
Forum: DOS Batch Forum
Topic: how to replace all occurrences of ;;;; with ; in a string
Replies: 36
Views: 25500

Re: how to replace all occurrences of ;;;; with ; in a strin

many thanks to DaveBenham, squashman, and Foxidrive for responding with solutions, im working on implementing them now. turns out i had an additional 7 values for a total of 28, so dave's first solution seems to be the winner as it can handle up to 32. for sq, yes there can be (and usually is) mult...
by Squashman
31 May 2012 10:09
Forum: DOS Batch Forum
Topic: how to replace all occurrences of ;;;; with ; in a string
Replies: 36
Views: 25500

Re: how to replace all occurrences of ;;;; with ; in a strin

I am sometimes amazed that you can do something in batch a couple of different ways and still get the same result.

And I guess technically the FOR /L loop could just stop at 2. No need to replace 1 comma with 1 comma

Code: Select all

for /L %%G in (8,-1,2) do
by Squashman
30 May 2012 21:16
Forum: DOS Batch Forum
Topic: [help] i need to extract data from a text file via batch
Replies: 38
Views: 23982

Re: [help] i need to extract data from a text file via batch

copy and paste the source data will affect the format... hence i decided to do a print screen That is what the code tags are for! Hope this time will be clearer.. Let's hope so for your sake. I see you have this posted on multiple forums on the Internet and a few of them are frustrated with your la...
by Squashman
30 May 2012 10:12
Forum: DOS Batch Forum
Topic: Wait until several processes have ended
Replies: 17
Views: 15694

Re: Wait until several processes have ended

Another option would be to use the /V switch with the TASKLIST command and then pipe it to Findstr and have Findstr look for the Specific Window Titles.
by Squashman
30 May 2012 10:04
Forum: DOS Batch Forum
Topic: Wait until several processes have ended
Replies: 17
Views: 15694

Re: Wait until several processes have ended

Code: Select all

tasklist /NH /FI "username eq Squashman"
by Squashman
30 May 2012 10:00
Forum: DOS Batch Forum
Topic: Wait until several processes have ended
Replies: 17
Views: 15694

Re: Wait until several processes have ended

I read here in Dostips that when using the /c: switch more than once that you have to also use the /i case insensitive switch, because of a bug. EDIT: Yes, your technique works well too squashman. @echo off start "" "notepad.exe" start "" "calc.exe" :Loop tas...