esfalk 0 Posted April 6, 2004 Just curious, where would I find the windows log-in username and how would I copy it as a string to be used in my AutoIT script? I'd like to save/access a file on the user's desktop, and I need the username to enter the appropriate path, for example: C:\Documents and Settings\**USERNAME**\Desktop\data.txt Thanks! Share this post Link to post Share on other sites
Holger 14 Posted April 6, 2004 (edited) There is an Autoit3-Macro: @UserName or you use the macro to the user-desktop: @DesktopDir . Please take a look into the Help-File to the part "Macro Reference" Regards Holger P.S.:f.i. $file = @DesktopDir & "\data.txt" Edited April 6, 2004 by Holger Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites