Search found 87 matches

by bars143
19 Dec 2013 03:22
Forum: DOS Batch Forum
Topic: Batch help to replace 1 line by number in a text file
Replies: 17
Views: 5203

Re: Batch help to replace 1 line by number in a text file

Sorry foxidrive.I tried your exact code and same result.Thanks for trying anyway.I appreciate it! foxi, your code work in my window 7 32-bit Thanks. I think val5662 is a newbie and has to pick up some skills that we take for granted. i create new folder containing : 1.) your code in batch file 2.) ...
by bars143
19 Dec 2013 02:51
Forum: DOS Batch Forum
Topic: Batch help to replace 1 line by number in a text file
Replies: 17
Views: 5203

Re: Batch help to replace 1 line by number in a text file

foxidrive wrote:
val5662 wrote:Sorry foxidrive.I tried your exact code and same result.Thanks for trying anyway.I appreciate it!


Did you fail to read my post, and download the helper batch file?


foxi, your code work in my window 7 32-bit :)
by bars143
03 Dec 2013 19:15
Forum: DOS Batch Forum
Topic: help counting time-lenght per ping status of google.com
Replies: 5
Views: 1575

Re: help counting time-lenght per ping status of google.com

@echo off :: inserting codes to penpen: :: one script to take ping output to "ping_list.txt" :: add one script to stop ping at 100, :: converted "ping_list.txt" with series # to "ping_google_status.tmp" del "c:\users\jocelyn\desktop2\ping_list.txt" del ping_g...
by bars143
03 Dec 2013 18:15
Forum: DOS Batch Forum
Topic: help counting time-lenght per ping status of google.com
Replies: 5
Views: 1575

Re: help counting time-lenght per ping status of google.com

If i understand you right, then you only want a batch script, that transforms the file named "ping_google_status.tmp" [1]Request timed out. - 8:07:50.28 [2]Request timed out. - 8:07:54.27 [3]Request timed out. - 8:07:58.26 [4]Request timed out. - 8:08:02.26 [5]Request timed out. - 8:08:06...
by bars143
02 Dec 2013 22:10
Forum: DOS Batch Forum
Topic: help counting time-lenght per ping status of google.com
Replies: 5
Views: 1575

Re: help counting time-lenght per ping status of google.com

hi penpen, your codes always give me a second though and decided to minimize my problems (and only one script fourth-one is missing, read below), but first i had to revise to better understand my suggestion, here is my new statement (and forget some of my first post statement): i found a script from...
by bars143
01 Dec 2013 22:05
Forum: DOS Batch Forum
Topic: help counting time-lenght per ping status of google.com
Replies: 5
Views: 1575

help counting time-lenght per ping status of google.com

hi, to all experts, could you help me make script based on code below: Pinging google.com [74.125.192.102] with 32 bytes of data: Reply from 74.125.192.102: bytes=32 time=472ms TTL=48 <---start time Reply from 74.125.192.102: bytes=32 time=435ms TTL=48 Reply from 74.125.192.102: bytes=32 time=441ms ...
by bars143
21 Nov 2013 20:00
Forum: DOS Batch Forum
Topic: batch file does not work with shortcut key
Replies: 10
Views: 4391

Re: batch file does not work with shortcut key

foxi, i used your code in my window-7 32-bit netbook: result is: C:\Users\Jocelyn\AppData\Local\Temp\findhotkey.vbs(4, 1) Microsoft VBScript runtime error: Object doesn't support this property or method: 'lnk.hotkey' C:\Users\Jocelyn\AppData\Local\Temp\findhotkey.vbs(4, 1) Microsoft VBScript runtime...
by bars143
21 Nov 2013 17:57
Forum: DOS Batch Forum
Topic: help capturing cmd console 's output to a text file
Replies: 6
Views: 4560

Re: help capturing cmd console 's output to a text file

adb help outputs to stderr instead of stdout like a normal program. Use adb.exe help 2>>help.txt Good call. I have seen that before as well. @ShadowThief, thanks for great help and it is working now: C:\Program Files\Easy ADB\adb>adb.exe 2>>help.txt Access is denied. C:\Program Files\Easy ADB\adb>a...
by bars143
21 Nov 2013 08:18
Forum: DOS Batch Forum
Topic: help capturing cmd console 's output to a text file
Replies: 6
Views: 4560

Re: help capturing cmd console 's output to a text file

hi @foxi, my first post with code above are for testing with different codes to redirect "adb.exe help list" output to a text file but failed. -------- well, my intention is how to redirect output of adb.exe's command help to a text file only. but this two codes below : adb.exe help >will_...
by bars143
20 Nov 2013 22:28
Forum: DOS Batch Forum
Topic: help capturing cmd console 's output to a text file
Replies: 6
Views: 4560

help capturing cmd console 's output to a text file

hi experts, want correction to my code below: @echo off for /f "delims=" %%A in (' start "" "C:\Program Files\Easy ADB\adb\adb.exe" help^|find "^" ^>^>no_created.txt ') do ( echo %%A >>no_file_crea.ted ) >>no_file_created.yet pause "C:\Program Files\Easy ...
by bars143
19 Nov 2013 01:08
Forum: DOS Batch Forum
Topic: Help! .bat file to get free disk space
Replies: 26
Views: 10083

Re: Help! .bat file to get free disk space

It's aGerman's code - I just stopped it echoing the message when %3 is empty and it skips that drive. You probably made a typo when you edited the code originally. @foxi, and actually its not a typo its a misreading of whole thread, i found out that the first code should have new script to replace ...
by bars143
19 Nov 2013 00:00
Forum: DOS Batch Forum
Topic: Help! .bat file to get free disk space
Replies: 26
Views: 10083

Re: Help! .bat file to get free disk space

Does this also fail? @echo off &setlocal set "GB=1073741824" for /f "skip=1 delims=" %%i in ('wmic logicaldisk get DeviceID^,FreeSpace^,Size') do ( for /f "tokens=1-3" %%j in ("%%i") do call :output %%j %%k %%l ) pause goto :eof :output if "%3"=...
by bars143
18 Nov 2013 23:09
Forum: DOS Batch Forum
Topic: Help! .bat file to get free disk space
Replies: 26
Views: 10083

Re: Help! .bat file to get free disk space

hi @aGerman in my netbook: dell inspiron, window7 ultimate 32bit ,1gb ram in my netbook it listed the ff: c:\ (internal drive) e:\ (removable drive) --- this one has no external drive inserted. then using your first code, will output like this (progress-bar not incl.): C: size: 232.79GB used: 34.59G...
by bars143
05 Nov 2013 02:39
Forum: DOS Batch Forum
Topic: help sorting list of filename by its string lenght
Replies: 24
Views: 10687

Re: help sorting list of filename by its string lenght

Aacini, your third code in batch file is now faster than a repl in command prompt. one input = average seconds for repl is within 0.02 secs yours is within 0.01 secs !!! but can you give code for a test that count : 0.00001 seconds ? im only using %time% but i dont how to use ping (which has 1000 mi...
by bars143
04 Nov 2013 03:19
Forum: DOS Batch Forum
Topic: help sorting list of filename by its string lenght
Replies: 24
Views: 10687

Re: help sorting list of filename by its string lenght

using my machine : w7 32bit here are the speeds test result (in seconds) between your old and new scripts: (tested to produced four files each in one run and i used stopwatch.txt to collect time-speed) old script speedtest status: new script speedtest status: ---------------------------- -----------...