Juf Posted January 6, 2009 Share Posted January 6, 2009 My question is; How do you find out what user you are in (for windows)? Example; Say I was on user tsi (I'm doing this so i can bind it with switchblade and get MSN logs, I know I'm a noob). If I'm using switchblade I won't (usually) have enough time to manually enter the user name. So if my program can find out the user then it would automatically copy (hence the example use tsi) C:\Documents and Settings\tsi\My Documents\My Chat Logs to E:/Dump/ or whatever. So far I haven't started making this so I will except any languages you may offer a solution for... I currently know, Lua, C, C++, Java, and DOS. Thanks in Advance, Juf Quote Link to comment Share on other sites More sharing options...
H@L0_F00 Posted January 6, 2009 Share Posted January 6, 2009 So far I haven't started making this so I will except any languages you may offer a solution for... I currently know, Lua, C, C++, Java, and DOS. DOS is a language!? O.o /sarcasm Quote Link to comment Share on other sites More sharing options...
Juf Posted January 6, 2009 Author Share Posted January 6, 2009 DOS is a language!? O.o /sarcasm DOS batch W/e Please only quality posts! Quote Link to comment Share on other sites More sharing options...
taiyed14 Posted January 6, 2009 Share Posted January 6, 2009 DOS batch W/e Please only quality posts! say self, who are you? self, are you logged on? heh, if you post in a forum, you have to expect less then quality posts. Quote Link to comment Share on other sites More sharing options...
Droz Posted January 6, 2009 Share Posted January 6, 2009 Open up a cmd prompt and type set you should see a variable that shows which user is logged on. that should get you started in the right direction. I think.... ? Quote Link to comment Share on other sites More sharing options...
Retro-Starr Posted January 6, 2009 Share Posted January 6, 2009 %username% I think there is another one...or it could just be this one. I forget. Lol. There you go! Quote Link to comment Share on other sites More sharing options...
X3N Posted January 6, 2009 Share Posted January 6, 2009 thers a sysinternal tool called psloggedon which is what i use . Quote Link to comment Share on other sites More sharing options...
Juf Posted January 6, 2009 Author Share Posted January 6, 2009 Thanks alot guys, set HOMEPATH is what I'm going to use. It should be easy from there! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.