FileCopy - Permission Denied
Am comparing folders on 2 PC's on my home network; upstairs and downstairs computers. Downstairs computer has SharedDocs folders mapped as separate drives for both computers. Am able to compare folders on both PC's and produce lists of files that are on the downstairs PC and not the upstairs PC and vice versa.
The next step is to synch the folders by copying the missing files from one PC to the other so that the folder on both PC's contains the exact same files. I am using fso and FileCopy, but get 'Permission denied' error when it goes to copy the first file.
Can someone lead me in the right direction where I might research this issue or provide an answer if known?
Thanks.
Re: FileCopy - Permission Denied
What OS on both PC's? Do you have write permissions on the target folder?
Re: FileCopy - Permission Denied
One presumes that at home you don't have a domain. if you do then use domain permissions.
Otherwise - it's gonna be tricky, but not impossible.
You will need to change the thread permissions of that of the target computer . .. . . . (the joys of 'workgroup' computing)
Urghhhhhh
Re: FileCopy - Permission Denied
Quote:
Originally Posted by penagate
What OS on both PC's?
This is a good question. If the OS's dont match, you could run into problems.
Also, are you logged in on both machines when you try this, or are you just logged in on one, with someone else, or noone else, logged in on the other?
Re: FileCopy - Permission Denied
Using WindowsXP(SP2) Home Edition on both machines...logged on as same user on both machines.
Re: FileCopy - Permission Denied
Quote:
Originally Posted by doofusboy
Using WindowsXP(SP2) Home Edition on both machines...logged on as same user on both machines.
THe same user is not the same user.
Each user is assigned an SSID which takes the domain(or machinename)\username as it's key. Assuming the machine names are different and you are not using domain logins and the time was different when you added the user, windows will not validate the two users as the same.
Re: FileCopy - Permission Denied
Have you tried giving the permissions of a shared folder as 'Everyone' ?
1 Attachment(s)
Re: FileCopy - Permission Denied
yrwyddfa, thanks for responding. I'm not at all familiar with what you are referring to, would it be possible for you to "dumb it down" for me?
To clarify, on my 'downstairs' [machine name] PC I have the Shared Docs folders for my 'upstairs' [machine name] PC and the Shared Docs folders for my 'downstairs' PC mapped as separate drives. I am trying to compare an existing folder on each and then copy the files on the downstairs PC that are not on the upstairs PC to the upstairs PC and vice versa.
Attached herewith is a .zip of my project. Please excuse the sloppy code...I generally try to get things working first and then go back and tidy up the code.
Re: FileCopy - Permission Denied
I assume that you're working on XP, right?
On either machine open explorer and create a directory called 'Share' can be anything you want it to be.
Right-click\properties\sharing
Click 'Share this folder' and then click permissions
On the bottom part of the dialogue you should click Full Control, so that 'Everyone' has full control.
This should ALWAYS only be done on a private network behind a router firewall (if it has internet access)