Sign in to follow this  
Followers 0
PeppeGj31

I have a problem please HELP ME! :(

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Try @Username.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by airrs

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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. :naughty:

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0