Page 1 of 2 12>
Topic Options
#129446 - 04/11/12 08:05 PM these % thingys
hearmeout Offline
Fresh Scripter

Registered: 02/03/26
Posts: 43
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.

Top
#129447 - 04/11/12 08:10 PM Re: these % thingys
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
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 ...

Top
#129448 - 04/11/12 08:11 PM Re: these % thingys
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
no, you should not type "C:\>"!

just type set.
_________________________
!

download KiXnet

Top
#129449 - 04/11/12 08:15 PM Re: these % thingys
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
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

Top
#129450 - 04/11/12 08:53 PM Re: these % thingys
hearmeout Offline
Fresh Scripter

Registered: 02/03/26
Posts: 43
thanks shawn for helping me out with 'em percent thingies. Oh, by the way, y'all are funny.


Top
#129451 - 04/11/12 09:14 PM Re: these % thingys
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
They are NOT DOS thingies but can be viewed easily in a DOS box. You can also see and use them without DOS.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129452 - 04/11/12 09:22 PM Re: these % thingys
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
good point les!
_________________________
!

download KiXnet

Top
#129453 - 04/11/12 09:24 PM Re: these % thingys
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
been called pointless many times.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129454 - 04/11/12 10:55 PM Re: these % thingys
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
except this one...
_________________________
!

download KiXnet

Top
#129455 - 04/11/12 11:00 PM Re: these % thingys
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
they're still DOS thingies ;0)
Top
#129456 - 04/11/12 11:07 PM Re: these % thingys
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
actually, they're UNIX thingies ... '0)
Top
#129457 - 04/11/12 11:08 PM Re: these % thingys
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
From MSN:
Quote:

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




_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129458 - 04/11/12 11:13 PM Re: these % thingys
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
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




Top
#129459 - 04/11/13 03:09 AM Re: these % thingys
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
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...
_________________________
!

download KiXnet

Top
#129460 - 04/11/13 03:31 AM Re: these % thingys
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129461 - 04/11/13 03:38 AM Re: these % thingys
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
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>


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#129462 - 04/11/13 12:48 PM Re: these % thingys
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
that's no DOS prompt.
this is:
Quote:

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




_________________________
!

download KiXnet

Top
#129463 - 04/11/13 12:50 PM Re: these % thingys
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
and ja, it's different.
that's why you can use "prompt" command to change it.
_________________________
!

download KiXnet

Top
#129464 - 04/11/13 02:08 PM Re: these % thingys
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
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 ?

Top
#129465 - 04/11/13 03:11 PM Re: these % thingys
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
but I still don't get that usage of kix32.exe
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 66 anonymous users online.
Newest Members
Sony55, CCFG1, Todd_E, FredR, jhirche
17371 Registered Users

Generated in 0.043 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org