Results 1 to 9 of 9

Thread: FileCopy - Permission Denied

  1. #1

    Thread Starter
    Fanatic Member doofusboy's Avatar
    Join Date
    Apr 2003
    Posts
    526

    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.
    Do canibals not eat clowns because they taste funny?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: FileCopy - Permission Denied

    What OS on both PC's? Do you have write permissions on the target folder?

  3. #3
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    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
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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?

  5. #5

    Thread Starter
    Fanatic Member doofusboy's Avatar
    Join Date
    Apr 2003
    Posts
    526

    Re: FileCopy - Permission Denied

    Using WindowsXP(SP2) Home Edition on both machines...logged on as same user on both machines.
    Do canibals not eat clowns because they taste funny?

  6. #6
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    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.
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

  7. #7
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Re: FileCopy - Permission Denied

    Have you tried giving the permissions of a shared folder as 'Everyone' ?
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

  8. #8

    Thread Starter
    Fanatic Member doofusboy's Avatar
    Join Date
    Apr 2003
    Posts
    526

    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.
    Attached Files Attached Files
    Do canibals not eat clowns because they taste funny?

  9. #9
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    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)
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width