copy doesn't work

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
deheugden
Newbie
Posts: 1
Joined: Sun Aug 07, 2005 1:05 pm

copy doesn't work

Post by deheugden » Sun Aug 07, 2005 1:07 pm

hi, i am buidling a copyscript. the only problem: my script doesn't copy. I would like it to copy a folder and everything thats in thhis folder. it did it like this:

fsoobject.CopyFile "copysource","copydestination"

the copysource and the copydestination are variables.
someone an idee?

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sun Aug 07, 2005 2:18 pm

If copysource and copydestination are variables then they should not be in quotes. In quotes they are actually literals.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts