Sign in to follow this  
Followers 0
scorch

Copy and Paste files

2 posts in this topic

so i am trying to perform an action involving filecopying a file from a whatever machine name is entered and then pasting it to my desktop.

so the machine name is pulled from a .ini file. my issue is that in the .ini file only the machine names are listed and its a very long list. and in order to map to a machine you have to type "\\[Machine name Variable] \c$\program files\etc... so how can i make it work with the "FILECOPY" action?

this is partial piece of the code just to give reference

Case $msg = $Button_XMLGO
        $MMName = GUICtrlRead($XMLInput)
        $MMList = IniRead("\\finch\ceregen_it\JEGONZ\Public\DB access\MMPaths.ini","Machines",$MMName, 1)
        If $MMList = 0 Then

FileCopy("\\$MMList\c$\", "@UserProfileDir & "\Documents")

Share this post


Link to post
Share on other sites



so i am trying to perform an action involving filecopying a file from a whatever machine name is entered and then pasting it to my desktop.

so the machine name is pulled from a .ini file. my issue is that in the .ini file only the machine names are listed and its a very long list. and in order to map to a machine you have to type "\\[Machine name Variable] \c$\program files\etc... so how can i make it work with the "FILECOPY" action?

this is partial piece of the code just to give reference

Case $msg = $Button_XMLGO
         $MMName = GUICtrlRead($XMLInput)
         $MMList = IniRead("\\finch\ceregen_it\JEGONZ\Public\DB access\MMPaths.ini","Machines",$MMName, 1)
         If $MMList = 0 Then
 
 FileCopy("\\$MMList\c$\", "@UserProfileDir & "\Documents")
For me to understand what you want you need to explain it more clearly. I read it 4 times and tried to understand but it's not at all clear.

But if you mean you want to include th evariable $MMList in the string for the file path to be copied then

FileCopy("\\" & $MMList & "\c$\","@User..................


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0