bat file to create dll in main profile?

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

  1. D34DL1N3R
    OP

    D34DL1N3R Nephilim

    Member
    1,708
    197
    Dec 6, 2008
    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

    tk_saturn GBAtemp Psycho!

    Member
    3,327
    14
    Jan 26, 2010
    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

    D34DL1N3R Nephilim

    Member
    1,708
    197
    Dec 6, 2008
    United States
    That's not the name of the dll. [​IMG] I just used the x's as a placeholder.
     
  4. MicroChip123

    MicroChip123 Member

    Newcomer
    31
    0
    Jun 10, 2009
    try %USERNAME% or %userprofile%
     
  5. D34DL1N3R
    OP

    D34DL1N3R Nephilim

    Member
    1,708
    197
    Dec 6, 2008
    United States
    %USERNAME% worked so I didn't try the other.

    Thanks!!!