Numbness Posted March 28 Share Posted March 28 I want to copy a file to my USB drive and I automatically assigned the letter of my drive as a variable, but I cannot use this variable as FileCopy($sUsbDrive & "Awesome.exe") Link to comment Share on other sites More sharing options...
Nine Posted March 28 Share Posted March 28 Did you take the time to look at my suggestion there : Or maybe I don't understand your request, it is kind of hard to answer when you only show a single line of code...Please next time, make a full runable example of your issue. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Solution donnyh13 Posted March 28 Solution Share Posted March 28 (edited) Like @Nine said, it is a little difficult to see what your problem may be without a whole script, but if that is actually how you are using FileCopy, 1 hour ago, Numbness said: FileCopy($sUsbDrive & "Awesome.exe") you are missing the source or destination. FileCopy ( $sSourcePath, $sDestinationPath) Edited March 28 by donnyh13 LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now