I’m just asking how to do this basic function.
How can I do a Copy-item when the source name varies.
What I mean by that is, I want to take a script and put it on my flash drive. Then insert the drive into another computer, and run the script.
The problem I have is the drive letter changes for flash drives, so how do I account for this?
I basically want to do something like this:
Copy-Item "Folder_The_Script_Is_Stored_In_On_The_Flashdrive\randomfile.txt C:\Windows