Results 1 to 11 of 11
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Home Folder (WinXP Sp2)

    Is there any internal variable for XP that will return the user's folder, like Cocuments and SettingsCWBillow, that could be used as a batch file variable?

    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Home Folder (WinXP Sp2)


  3. #3
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Home Folder (WinXP Sp2)

    Leif:

    It does, I think, but I'm not at all clear on it as yet...

    Thanks,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  4. #4
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,593
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Home Folder (WinXP Sp2)

    See Microsoft Windows XP - Command shell overview for a list of standard XP environment variables.

    Joe
    Joe

  5. #5
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Home Folder (WinXP Sp2)

    Great.

    Thanks Joe.

    Now, does WinXp recognize commands from the autoexec.bat file (in the root) or do you need another path to implement commands at user startup?

    Regards,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  6. #6
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,593
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Home Folder (WinXP Sp2)

    Joe

  7. #7
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Home Folder (WinXP Sp2)

    Joe:

    Will/would any viable batch file command work in what this page calls "scripts"?

    If so, then that is in fact my answer!

    Thanks,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  8. #8
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Home Folder (WinXP Sp2)

    Have you tried it to see?

  9. #9
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Home Folder (WinXP Sp2)

    Another option would be to put a shortcut to the batch file in the user's Startup folder.

    You probably know this, but just in case: Note that, if you've tweaked your PC so the default action for batch files is Edit rather than Open, a simple shortcut to the batch file won't run it. The shortcut's command line should instead look something like this:

    %windir%System32cmd.exe /k C:BINMyStartBatch.BAT

  10. #10
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Home Folder (WinXP Sp2)

    Steve:

    >>
    You probably know this, but just in case: Note that, if you've tweaked your PC so the default action for batch files is Edit rather than Open, a simple shortcut to the batch file won't run it.
    <<

    Yea, now that you mention it, but it surely would have been an "Oh da--," and then re-doing it.

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  11. #11
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Home Folder (WinXP Sp2)

    Leif:

    >>
    Have you tried it to see?
    <<
    Surely some, but not all, and I certainly expect exceptions to the rules. The trick is whether the working is the exception, or the not.

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •