Announcement

Collapse
No announcement yet.

W2K - Using different files for different users

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • W2K - Using different files for different users

    I want to set up a shortcut to a client program on win2000 to use a ini file specific to the user that has logged in!

    So in the shortcut properties, in the "target" field, I can set a parameter saying where to find the ini file. And now I would like to know if I can set up a path something in the nature of:

    C:\DIR\program.exe ini=c:\documents and settings\<logged in user>\file.ini

    where <logged in user> would obviously be the name of the folder for the person who has logged on to the machine!

    Can this be done??
    If a kid asks where rain comes from, I think a cute thing to tell him is "God is crying." And if he asks why God is crying, another cute thing to tell him is "Probably because of something you did."

  • #2
    Yep, thats pretty easy actually. Bascically, what you need to do is create an environemnt variable for each user.

    Win2000 should have automatically created a variable called "HOME" with the value of "X:\Documents and Settings\username". If it's there you can just use that, and if not then you will need to create it.

    So the shortcut would read, "C:\DIR\program.exe ini=%HOME%\file.ini"

    Alternatetively, you can use the "USER" ev.
    "C:\DIR\program.exe ini=C:\Documents and Settings\%USER%\file.ini"

    Either one should work. To check on your environment variables go into control panels\system and select the Advanced tab. Once of the options there is Environment variables. You can manage all of your variables there.

    Hope that works for you.
    Ian
    Primary System:
    MSI 745 Ultra, AMD 2400+ XP, 1024 MB Crucial PC2100 DDR SDRAM, Sapphire Radeon 9800 Pro, 3Com 3c905C NIC,
    120GB Seagate UDMA 100 HD, 60 GB Seagate UDMA 100 HD, Pioneer DVD 105S, BenQ 12x24x40 CDRW, SB Audigy OEM,
    Win XP, MS Intellimouse Optical, 17" Mag 720v2
    Seccondary System:
    Epox 7KXA BIOS 5/22, Athlon 650, 512 MB Crucial 7E PC133 SDRAM, Hercules Prophet 4500 Kyro II, SBLive Value,
    3Com 3c905B-TX NIC, 40 GB IBM UDMA 100 HD, 45X Acer CD-ROM,
    Win XP, MS Wheel Mouse Optical, 15" POS Monitor
    Tertiary system
    Offbrand PII Mobo, PII 350, 256MB PC100 SDRAM, 15GB UDMA66 7200RPM Maxtor HD, USRobotics 10/100 NIC, RedHat Linux 8.0
    Camera: Canon 10D DSLR, Canon 100-400L f4.5-5.6 IS USM, Canon 100 Macro USM Canon 28-135 f3.5-5.6 IS USM, Canon Speedlite 200E, tripod, bag, etc.

    "Any sufficiently advanced technology will be indistinguishable from magic." --Arthur C. Clarke

    Comment

    Working...
    X