Search found 87 matches

by bars143
01 Oct 2013 03:10
Forum: DOS Batch Forum
Topic: Help merge strings of every three lines to one line
Replies: 5
Views: 1926

Re: Help merge strings of every three lines to one line

after a given answer from foxi ,then i made a batch script that create .bat's template but failed to stabilized last two lines which both has quotes to maintain actual text but failed to removed quotes when output-ted to a bat file. here is my menu-embedder.bat: @echo off setlocal EnableDelayedExpan...
by bars143
01 Oct 2013 00:21
Forum: DOS Batch Forum
Topic: Help merge strings of every three lines to one line
Replies: 5
Views: 1926

Re: Help merge strings of every three lines to one line

This isn't perfect, but we don't know the limitations of your list to put in a lot of effort in getting it perfect. "input.txt" is the file with the list. @echo off setlocal EnableDelayedExpansion set count=0 findstr /n "." "input.txt" >file.tmp <file.tmp (for /f "...
by bars143
30 Sep 2013 23:08
Forum: DOS Batch Forum
Topic: Help merge strings of every three lines to one line
Replies: 5
Views: 1926

Help merge strings of every three lines to one line

hi experts, i had made a working bat script with a menu : @echo off :top cls echo select number in a menu below: echo. :: this four lines with three-columns below is what i suggested to create automatically using batch script: echo.1.STATUS 2.ADDPIC 3.ADDPICD echo.4.ALBUMS 5.ALLINFO 6.APICS echo.7.C...
by bars143
30 Sep 2013 20:36
Forum: DOS Batch Forum
Topic: help removing and replacing string between specified strings
Replies: 6
Views: 2454

Re: help removing and replacing string between specified str

something in wget.exe does not allowed dowloaded URLs with like of "https://...." but removing "s" using my bat script and this result: "http://...." got working. FindRepl "\.jpg[\w\+Ñ]+https:" "\.jpg\r\nhttp:" < download-list.txt > download-list-ne...
by bars143
29 Sep 2013 19:33
Forum: DOS Batch Forum
Topic: help removing and replacing string between specified strings
Replies: 6
Views: 2454

Re: help removing and replacing string between specified str

hi Aacini, thanks anf got it. i read your links and also read it related links and some google it too. its really difficult for a newbie like me but of courses have some times to learn a bit like that. something in wget.exe does not allowed dowloaded URLs with like of "https://...." but re...
by bars143
29 Sep 2013 02:36
Forum: DOS Batch Forum
Topic: help removing and replacing string between specified strings
Replies: 6
Views: 2454

Re: help removing and replacing string between specified str

hi Aacini, it is working great ! ! ! but i wonder where and what is +Ñ from "\.jpg[\w\+Ñ]+https:" come from ? or i misread that it is listed in your thread? and i only know is this (when you answer my last thread): \w w... (\w+) (\w+). /$:0 /Q: anyway a helpful answer is highly appreciated...
by bars143
29 Sep 2013 00:57
Forum: DOS Batch Forum
Topic: help removing and replacing string between specified strings
Replies: 6
Views: 2454

help removing and replacing string between specified strings

hi to batch experts, i had fbcmd.bat that display list of URLs but transferring list of URLs by adding "> download-list.txt" to a "fbcmd.bat PPICS =ALL: fbcmd.bat PPICS =ALL >download-list.txt will result : access denied but i had to to select all and copy then pasted to a text file s...
by bars143
25 Sep 2013 23:32
Forum: DOS Batch Forum
Topic: please help extracting links from a source-code of html file
Replies: 7
Views: 2064

Re: please help extracting links from a source-code of html

thanks Aacini for other code : < input.html FindRepl "http://(\w+).(\w+).(\w+)(/\w+)+" /$:0 /Q: that really excluded space or quotes only ? but i will try soon... anyway i already made another bat script to remove space and quote as wget will not work with quoted URL's in a text file. sorr...
by bars143
25 Sep 2013 07:15
Forum: DOS Batch Forum
Topic: please help extracting links from a source-code of html file
Replies: 7
Views: 2064

Re: please help extracting links from a source-code of html

great thanks Aacini, got it !!! as shown below: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Jocelyn\Desktop2>< input.html FindRepl "http://(\w+).(\w+).(\w+)(/\w+)+" /$:0 > download-list.txt C:\Users\Jocelyn\Desktop2>type down...
by bars143
25 Sep 2013 02:27
Forum: DOS Batch Forum
Topic: please help extracting links from a source-code of html file
Replies: 7
Views: 2064

please help extracting links from a source-code of html file

hi to all online experts, can you help me create a .bat script using a partial one-line source-code from html: </div><div>The following commands are available in <b>FBCMD</b>:Â </div><br /><div><table border="1" bordercolor="#888" cellspacing="0" style="border-coll...
by bars143
15 Sep 2013 23:15
Forum: DOS Batch Forum
Topic: Not the right command with the right option (errorlevel)
Replies: 26
Views: 6531

Re: Not the right command with the right option (errorlevel)

Welcome to Dostips, Bars143. You are quite right - the choice syntax was incorrect. This works. choice /C:12345678 /N /M "Choose a option..." ahh another way foxi -- and its really work. anyway ,thanks for welcoming me. i felt happy to have this forum as i planned to fully use my netbook ...
by bars143
15 Sep 2013 22:53
Forum: DOS Batch Forum
Topic: Not the right command with the right option (errorlevel)
Replies: 26
Views: 6531

Re: Not the right command with the right option (errorlevel)

im newbie here from philippine and not a programmer but a learner to batch script and this thread regarding above code that i test is really working with the use of "&echo" as shown below: choice /C:12345678 &echo Choose a option... this code below does not work (in my window7 32bi...