AutoHotkey Community

It is currently May 27th, 2012, 6:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Find logged in Username?
PostPosted: November 30th, 2010, 9:36 pm 
Offline

Joined: February 9th, 2006, 8:01 pm
Posts: 117
I need to write a script to delete files in a folder thats installed under "My Documents"
All users will be in WinXP
The folder location looks like this:

\\Server001\Users$\USERJIMP\Foldertodelete\

So, to build the string I need to delete the folder, I need to know the logged in users logon name. I know how to do this in VB but not in Autohotkey.

Any suggestions?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2010, 9:54 pm 
Offline

Joined: April 4th, 2008, 8:15 pm
Posts: 538
Location: Canada
http://www.autohotkey.com/docs/Variables.htm

HINT : "Operating System and User Info"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2010, 10:50 pm 
Offline

Joined: February 9th, 2006, 8:01 pm
Posts: 117
PurloinedHeart wrote:
http://www.autohotkey.com/docs/Variables.htm

HINT : "Operating System and User Info"



Thanks! One thing I found out is you have to be sure no files are in use (duh) But it's working great now.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], hd0202, HotkeyStick and 53 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group