Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computing > Alt Msdos Batch > CALL XSET32
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 11 Topic 2694 of 2785
Post > Topic >>

CALL XSET32

by "sKurt" <skurt@[EMAIL PROTECTED] > May 17, 2008 at 07:52 AM

Me again...

Working with 100s of Windows 98 and 100s of Windows XP operating systems

I have recently (today) tested using XSET to color my .BATs output.

I Set up the code so I can run one line while doing individual OSs.

So if I am running 98 then %X1% = XSET and when XP %X1% = CALL XSET32


Here is the problem, with Windows 98, XSET works as advertised, when
I run XSET/COLOR RED /PROMPT "SHOW SOME COMMENT" it works great but
with CALL XSET32/COLOR RED /PROMPT "SHOW SOME COMMENT" after showing
the comment, the .BATCH dies.  No errors, no warnings nothing only
back to the DOS prompt

I have tried compiled with ExeSCRIPT and Quick File Batch Compiler as
well as standard .BAT running, all give the same problem.  I tried
several PCs and they all run the same way, only does the first line
of CALL XSET32 and then dumps to DOS.

I tried a simple .BAT file 

*snip*
CALL XSET32/COLOR RED /PROMPT "THIS IS LINE ONE"
CALL XSET32/COLOR WHITE /PROMPT "THIS IS LINE TWO"
CALL XSET32/COLOR CYAN /PROMPT "THIS IS LINE THREE"
*snip*

It only runs line 1 then dumps to DOS.

Any clues would be greatly appreciated

Thanks again

sKurt



*snip*
::+=(01)=================+
::| Find windows Version |
::+======================+

[01]@[EMAIL PROTECTED]
 SET j=>tmp$$.bat

::+=(02)===============================+
::| Get Ver, DEL Blanks, Cut out 98/XP |
::+====================================+

[01]@[EMAIL PROTECTED]
 | GAWK "/./" | CUT -c 9-10>>tmp$$.bat

[02]@[EMAIL PROTECTED]
 tmp$$.bat>NUL
[03]@[EMAIL PROTECTED]
 tmp$$.bat>NUL

::+=(03)============================+
::| Compare %j% if it is t then set |
::| the variable to XP ELSE it's 98 |
::+=================================+

[01]@[EMAIL PROTECTED]
 "%j%"=="t " SET j=XP

::+=(04)=================+
::| Setup XSET OS Switch |
::+======================+

[01]@[EMAIL PROTECTED]
 "%j%"=="XP" TITLE SET XSET OS VER
[02]@[EMAIL PROTECTED]
 "%D1%"=="/DEBUG" ECHO SET XSET OS (04)

::+==============================+
::| Finally decided to try XSET  |
::| and it works great, in Win98 |
::| CALL XSET32 doesn't seem to  |
::| work with Windows XP :(      |
::+==============================+

[01]@[EMAIL PROTECTED]
 "%j%"=="XP" SET X1=CALL XSET32
[02]@[EMAIL PROTECTED]
 "%j%"=="98" SET X1=XSET

::+============================+
::| Put the HELP switch AFTER  |
::| the XSET parse for color   |
::+============================+

::+=(HELP)=====================+::
@[EMAIL PROTECTED]
 %1 | FIND /i "help">NUL
@[EMAIL PROTECTED]
 NOT ERRORLEVEL 1 GOTO :_HELP_SCR
::+=(/HELP)====================+::

::+=(05)==============+
::| Count script runs |
::+===================+

[01]@[EMAIL PROTECTED]
 "%D1%"=="/DEBUG" %X1%/COLOR RED /PROMPT "COUNTING RUNS (05)"
[02]@[EMAIL PROTECTED]
 EXIST RunCount.DAT GOTO :_1
[03]@[EMAIL PROTECTED]
>>RunCount.DAT ECHON 0
[04]:_1
[05]@[EMAIL PROTECTED]
 "{printf \"%%s\n\",$0+1}" RunCount.DAT>count$$$.tmp
[06]@[EMAIL PROTECTED]
 /Y count$$$.tmp RunCount.DAT>nul
*snip*



--
 




 11 Posts in Topic:
CALL XSET32
"sKurt" <sku  2008-05-17 07:52:42 
Re: CALL XSET32
Timo Salmi <ts@[EMAIL   2008-05-17 23:28:27 
Re: CALL XSET32
"sKurt" <sku  2008-05-17 20:52:50 
Re: CALL XSET32
Timo Salmi <ts@[EMAIL   2008-05-18 15:40:03 
Re: CALL XSET32
"sKurt" <sku  2008-05-18 18:40:48 
Re: CALL XSET32
foxidrive <gotcha@[EMA  2008-05-19 06:52:10 
Re: CALL XSET32
"sKurt" <sku  2008-05-18 22:17:56 
Re: CALL XSET32
ak621@[EMAIL PROTECTED]   2008-05-19 13:15:51 
Re: CALL XSET32
"sKurt" <sKu  2008-05-19 14:10:50 
Re: CALL XSET32
ak621@[EMAIL PROTECTED]   2008-05-19 13:11:50 
Re: CALL XSET32
ak621@[EMAIL PROTECTED]   2008-05-19 13:10:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 8:07:06 CDT 2008.