hearmeout
(Fresh Scripter)
2004-11-12 08:05 PM
these % thingys

Hi y'all,

I'm wondering if you guys could tell me what these % thingys are called. for example %systemdrive%, %username%, etc. and if have a link to the documentations of these.


ShawnAdministrator
(KiX Supporter)
2004-11-12 08:10 PM
Re: these % thingys

I call those "%" thingies "percent thingies" !!!

I call those "%username%" thingies "environment variables" ...

they're basically DOS variables and you can get the whole list of them by typing:

C:\> SET

at the DOS prompt ...


LonkeroAdministrator
(KiX Master Guru)
2004-11-12 08:11 PM
Re: these % thingys

no, you should not type "C:\>"!

just type set.


ShawnAdministrator
(KiX Supporter)
2004-11-12 08:15 PM
Re: these % thingys

ja, dont type the C:\> bit (Jooel, you basta!) Just realized something, if you tilt your head to the left, and look at the DOS prompt side-ways, it kinda looks like Osama Bin Ladin ...

C:\>

-Shawn


hearmeout
(Fresh Scripter)
2004-11-12 08:53 PM
Re: these % thingys

thanks shawn for helping me out with 'em percent thingies. Oh, by the way, y'all are funny.



Les
(KiX Master)
2004-11-12 09:14 PM
Re: these % thingys

They are NOT DOS thingies but can be viewed easily in a DOS box. You can also see and use them without DOS.

LonkeroAdministrator
(KiX Master Guru)
2004-11-12 09:22 PM
Re: these % thingys

good point les!

Les
(KiX Master)
2004-11-12 09:24 PM
Re: these % thingys

been called pointless many times.

LonkeroAdministrator
(KiX Master Guru)
2004-11-12 10:55 PM
Re: these % thingys

except this one...

ShawnAdministrator
(KiX Supporter)
2004-11-12 11:00 PM
Re: these % thingys

they're still DOS thingies ;0)

ShawnAdministrator
(KiX Supporter)
2004-11-12 11:07 PM
Re: these % thingys

actually, they're UNIX thingies ... '0)

Les
(KiX Master)
2004-11-12 11:08 PM
Re: these % thingys

From MSN:
Quote:

NTDOC says:
Tell Shawn their not strictly DOS THINGIES, as some programming languages use them as well






ShawnAdministrator
(KiX Supporter)
2004-11-12 11:13 PM
Re: these % thingys

From MSN:

Quote:


Les says:

NTDOC says:
Tell Shawn their not strictly DOS THINGIES, as some programming languages use them as well

Shawn says:
Tell Ron he's a mudda fudda





LonkeroAdministrator
(KiX Master Guru)
2004-11-13 03:09 AM
Re: these % thingys

you boys kinda suck...
you kinda have no idea, do you?
quess that's why you are so basta-like.

ps, I don't have any idea anyways...


Les
(KiX Master)
2004-11-13 03:31 AM
Re: these % thingys

Well it does have to do with the Operating System (OS) but is not limited to the Disk Operating System (DOS). DOS is a much misused term these days. The CMD prompt is not really a DOS prompt but I have been as guilty as everyone else in calling it that.

DOS was the underlying Operating System for all Windows versions except NT/2K/XP/2K3.


Les
(KiX Master)
2004-11-13 03:38 AM
Re: these % thingys

No matter how much I tilt my head and squint, my DOS Prompt doesn't look like OBL.
Quote:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\lligetfa>




LonkeroAdministrator
(KiX Master Guru)
2004-11-13 12:48 PM
Re: these % thingys

that's no DOS prompt.
this is:
Quote:

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990 - 1999.
 
C:\DOCUME~1\LONKERO>






LonkeroAdministrator
(KiX Master Guru)
2004-11-13 12:50 PM
Re: these % thingys

and ja, it's different.
that's why you can use "prompt" command to change it.


ShawnAdministrator
(KiX Supporter)
2004-11-13 02:08 PM
Re: these % thingys

Man-o-man, how do you guys work with those really long DOS prompts ? Here's my prompt:

E:\docs>

I do all my scripting out of the folder that I keep my Kixforms CHM stuff in ... in terms of my script names, try to keep them really short like:

t.kix, ado.kix, t2.kix, lv.kix ...

Sure - these are pretty short and meaningless ... but I dislike those really long,long filenames (especially ones with spaces in them) ...

Each to their own, eh ?


LonkeroAdministrator
(KiX Master Guru)
2004-11-13 03:11 PM
Re: these % thingys

but I still don't get that usage of kix32.exe

ShawnAdministrator
(KiX Supporter)
2004-11-13 03:40 PM
Re: these % thingys

eh?

LonkeroAdministrator
(KiX Master Guru)
2004-11-13 04:03 PM
Re: these % thingys

you fart keep on using the "DOS version" of kixtart. eh?

NTDOCAdministrator
(KiX Master)
2004-11-13 08:45 PM
Re: these % thingys

For testing scripts YES. I hate having to trap the Window console or use other code to trap errors. Running it in DOS console just comes easy to me.

Like said. Each has his/her own way of doing things.


LonkeroAdministrator
(KiX Master Guru)
2004-11-13 09:35 PM
Re: these % thingys

trap?
so you say, if you run the old kixtart via commandline, you don't need to care about the errors but when using wkix32 you suddenly take those seriously?


NTDOCAdministrator
(KiX Master)
2004-11-14 10:17 AM
Re: these % thingys

No I'm saying I hate having to declare a var just for GET $ or whatever, then remove it for production. I edit and run all my code in a DOS console all the time. If I use WKIX32 I need to place code there to stop or trap it otherwise it will close and you won't see the error so obvious.

As said, personal preference. Yes I could work around it with WKIX32 but I choose not to.


LonkeroAdministrator
(KiX Master Guru)
2004-11-14 03:31 PM
Re: these % thingys

but how do you see error on the console?
afaik, you need to somehow force it to show anyways. duh.


NTDOCAdministrator
(KiX Master)
2004-11-14 08:01 PM
Re: these % thingys

I use "%" thingies

Think you already know, you just like to bump post count


LonkeroAdministrator
(KiX Master Guru)
2004-11-14 08:56 PM
Re: these % thingys

hmm...
so you do something like:
set "thisError="+@error

or?


Bryce
(KiX Supporter)
2004-11-14 09:22 PM
Re: these % thingys

when i am developing a project i use kix32.exe and a open command prompt...

very easy to dump variables, information, string length, or... just run throught a development process with the command prompt.

once i get to a production realy lvl of code and i have no need of the command prompt display, i will switch over to wkix32.exe after removing all debug stuff....


LonkeroAdministrator
(KiX Master Guru)
2004-11-14 10:01 PM
Re: these % thingys

now there is a good explanation how it's done.

next I need to ask, why you need to use 2 executables when you can go with single?
you need to make the debug stuff anyways, so you also need to remove it when put to production.

if you then need to add "get $" to the end so you would not need another exe ("kix32.exe") nor additional helpers (command prompt)...
dunno, I see no reason why one still wants to go with the old one when wkix32 is clearly simpler.