Sign in to follow this  
Followers 0
TK_Incorperate

FileCopy problem

3 posts in this topic

Ok i want to copy items from a desktop folder, so on my computer it would be like this....

FileCopy("C:\Documents and Settings\Owner\Desktop\whatever.dll", "C:\where\ever\", 1)

However this program isn't made for me, so other people might have a different computer name instead of Owner, now what i want to do is something like this.....

$User = @UserName

    FileCopy("C:\Documents and Settings\$User\Desktop\whatever.dll", "C:\what\ever\", 1)

However you can't copy a variable (or whatever that thing is with the $) inside of quotation marks so i'm screwed here, any way around this?

~TK

Share this post


Link to post
Share on other sites



Tried

FileCopy("C:\Documents and Settings\" & @User & "\Desktop\whatever.dll", "C:\what\ever\", 1)


?

Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad

Share this post


Link to post
Share on other sites

Tried

FileCopy("C:\Documents and Settings\" & @User & "\Desktop\whatever.dll", "C:\what\ever\", 1)
?
lol I just thought of that right after I posted, I came back to post that i figured it out. and it's @UserName but thanks alot for the help, that will help others who have the same problem.

~TK

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