bat file to create dll in main profile?

Discussion in 'Computer Games and General Discussion' started by D34DL1N3R, Jul 12, 2010.

Jul 12, 2010
  1. D34DL1N3R
    OP

    Member D34DL1N3R Nephilim

    Joined:
    Dec 6, 2008
    Messages:
    1,614
    Country:
    United States
    I want to create a dll in a specific directory using a bat file, but I want it to create the file for the active user on ANY computer that runs it without having to change the bat. Here's the portion I need help with...

    if %pr% == 1 type nul > "C:\Documents and Settings\D34DL1N3R\Local Settings\Application Data\ProgramFolder\xxxxx.dll"

    If there a way to set the path so that it will just use the active users folder for the PC it's being run on, rather then looking specifically for "D34DL1N3R"?

    ThanX in advance. [​IMG]
     
  2. tk_saturn

    Member tk_saturn GBAtemp Psycho!

    Joined:
    Jan 26, 2010
    Messages:
    3,327
    Country:
    United Kingdom
    Sure there's a way. I would have to check the syntax for XP.

    But what is the point of create a dll called xxxxx.dll,it's not going to do anything.
     
  3. D34DL1N3R
    OP

    Member D34DL1N3R Nephilim

    Joined:
    Dec 6, 2008
    Messages:
    1,614
    Country:
    United States
    That's not the name of the dll. [​IMG] I just used the x's as a placeholder.
     
  4. MicroChip123

    Newcomer MicroChip123 Member

    Joined:
    Jun 10, 2009
    Messages:
    31
    Country:
    United Kingdom
    try %USERNAME% or %userprofile%
     
  5. D34DL1N3R
    OP

    Member D34DL1N3R Nephilim

    Joined:
    Dec 6, 2008
    Messages:
    1,614
    Country:
    United States
    %USERNAME% worked so I didn't try the other.

    Thanks!!!
     

Share This Page