PeppeGj31 Posted August 6, 2012 Posted August 6, 2012 Hi Guys! I'm Giuseppe and I'm Italian I have a question for you, if I don't know the Computer User(Administrator) on Vista or Windows 7, how can I use a comand "Filemove" on AUTOIT like this: FileMove("C:\Users\"I don't know the Username of my friend"\Downloads\CombatArmsEu.exe", "C:\New Folder\CombatArmsEu.exe") Can somebody help me? Ps.I tried with: %USERNAME%, Administrator, $sUsername, @Username and no one of these Names was right! Giuseppe
airrs Posted August 6, 2012 Posted August 6, 2012 (edited) Try @Username.haven't you read his post?Ps.I tried with: %USERNAME%, Administrator, $sUsername, @Username and no one of these Names was right! Edited August 6, 2012 by airrs
hannes08 Posted August 6, 2012 Posted August 6, 2012 Hello Peppe, there are several ways to get the usernames. If you only want the actually logged in user, use @Username. If you want to see all local users you can either use WMI to query all local usernames or use a _FileListToArray("C:Users", ...) to get a list of local user profiles. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
Moderators Melba23 Posted August 6, 2012 Moderators Posted August 6, 2012 PeppeGj31, If you do not have access to the downloads folder on that PC I do not see why we should help you get round the security measures that have been put in place to prevent you from using it. Download your games on your own machine. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts