Search found 4 matches

by mowmow
05 Nov 2009 10:35
Forum: DOS Batch Forum
Topic: Tab characters pasted into CMD window
Replies: 1
Views: 3678

Another issue with my solution (which I just discovered after unmuting my audio) is that the tab characters result in a windows alert sound being played. So, pasting the page contents in the command window yields a burst of not-so-friendly alert sounds (not CTRL-G bell sounds FWIW).
by mowmow
03 Nov 2009 07:58
Forum: DOS Batch Forum
Topic: Tab characters pasted into CMD window
Replies: 1
Views: 3678

Tab characters pasted into CMD window

Hi again, I have written a batch file that parses a simple cut/paste from a web browser window into the command window and then outputs the pertinent data in my desired format. The pasted data is taken in via the set /P function as shown here: (BEGIN LOOP) set /P INPUT1=: (END LOOP) What I've run in...
by mowmow
02 Nov 2009 19:44
Forum: DOS Batch Forum
Topic: Right String with variable index
Replies: 2
Views: 20746

OK. The adjacent post has the answer:

set indx=-4
set str=politic
echo.%str%
call set "str=%%str:~%indx%%%" <<===== The Key!
echo.%str%

Andy
by mowmow
02 Nov 2009 18:54
Forum: DOS Batch Forum
Topic: Right String with variable index
Replies: 2
Views: 20746

Right String with variable index

Hi Everyone, In the snippet below, "-4" serves as the index for the Right String function provided on this site. Is there a way to replace this constant with a variable such as "indx", the value of which may be -4? Simply replacing "-4" with "%indx%" does not ...