+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
Windows Thread, Moving Staff Home Folders in Technical; I've tried that but it doesnt copy it across......
  1. #16
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    657
    Thank Post
    123
    Thanked 90 Times in 74 Posts
    Rep Power
    79
    I've tried that but it doesnt copy it across...

  2. #17

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,319
    Thank Post
    902
    Thanked 1,799 Times in 1,550 Posts
    Blog Entries
    12
    Rep Power
    466
    Is the folder it is copying it over to valid?
    Did you make it into a .bat file?
    Did you make it into a startup script?

    also might be worth running the script in a command prompt to see you error.

    Z

  3. #18
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    657
    Thank Post
    123
    Thanked 90 Times in 74 Posts
    Rep Power
    79
    Hi Z,

    Its nearly there but when the copy to location is System32 then the script fails with a permission error, when its to the C:\ it works fine..

    I'm running it as a machine logon script so in theory it should copy it across as SYSTEM. Shouldn't it?
    (Edit: the script so far is...)

    Set FSO =CreateObject("scripting.FileSystemObject")
    FSO.CopyFile "\\apps\apps$\csccmd\csccmd.exe", "c:\windows\system32" ,True


    Michael
    Last edited by linkazoid; 7th August 2008 at 11:37 AM.

  4. #19

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,319
    Thank Post
    902
    Thanked 1,799 Times in 1,550 Posts
    Blog Entries
    12
    Rep Power
    466
    Ah thats why, you will need to run it as a startup to get into system32.

  5. #20
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    657
    Thank Post
    123
    Thanked 90 Times in 74 Posts
    Rep Power
    79
    yeah sorry i meant that i have tried running it as a startup script.

  6. #21

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,270
    Thank Post
    884
    Thanked 2,747 Times in 2,321 Posts
    Blog Entries
    11
    Rep Power
    785
    Quote Originally Posted by linkazoid View Post
    Hi Z,

    Its nearly there but when the copy to location is System32 then the script fails with a permission error, when its to the C:\ it works fine..

    I'm running it as a machine logon script so in theory it should copy it across as SYSTEM. Shouldn't it?
    (Edit: the script so far is...)

    Set FSO =CreateObject("scripting.FileSystemObject")
    FSO.CopyFile "\\apps\apps$\csccmd\csccmd.exe", "c:\windows\system32" ,True


    Michael
    Have you made sure that the computer accounts have access to the source file as it could be this causing your permission error instead?

    Also have you tried putting the file into the C:\Windows directory as this is also in the default search path for excecutibles, is there a definitave need to have it in the system32 directory?

  7. Thanks to SYNACK from:

    linkazoid (7th August 2008)

  8. #22
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    657
    Thank Post
    123
    Thanked 90 Times in 74 Posts
    Rep Power
    79
    OMG why am i such a div... Why didn't i think of that....

    It worked straight away!!!

    THANK YOU - THANK YOU - THANK YOU



SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Moving back home
    By PEO in forum General Chat
    Replies: 14
    Last Post: 9th June 2008, 03:49 PM
  2. Prevent moving of folders
    By pooley in forum How do you do....it?
    Replies: 3
    Last Post: 21st March 2008, 09:06 AM
  3. Pupils moving folders
    By wadeeuk in forum How do you do....it?
    Replies: 14
    Last Post: 14th November 2007, 08:08 AM
  4. Moving Shared Folders and Home Drives
    By secman in forum Windows
    Replies: 4
    Last Post: 31st August 2006, 09:23 PM
  5. Prevent users from moving folders ?
    By pooley in forum Windows
    Replies: 2
    Last Post: 9th May 2006, 11:30 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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