+ Post New Thread
Results 1 to 7 of 7
Scripts Thread, Script to Copy a bmp file to remote machines in Coding and Web Development; Hi there i have a bmp file placed in my c:\rm-cc4.bmp and a i would like to place it on ...
  1. #1
    tri_94's Avatar
    Join Date
    Feb 2007
    Location
    Lincolnshire
    Posts
    117
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    17

    Script to Copy a bmp file to remote machines

    Hi there i have a bmp file placed in my c:\rm-cc4.bmp and a i would like to place it on lots of machines.

    location it needs to go is \\COMPUTERNAME\c$\Program Files\Research Machines\Network Management\Desktop\

    i've tried a batch file however this appears to be no way of entering a username and password. so that fails. and i've tried
    "
    Set FSO =CreateObject("scripting.FileSystemObject")
    FSO.CopyFile "c:\RM-CC4.bmp","\\COMPUTERNAME\c$\Program Files\Research Machines\Network Management\Desktop\",True"

    But really have no clue when it comes to scripts. anyone help please?

    thanks
    nick

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,576
    Thank Post
    228
    Thanked 852 Times in 731 Posts
    Rep Power
    294
    if your on a domain why not just run a startup script that just copies from share to local c drive?

  3. #3
    tri_94's Avatar
    Join Date
    Feb 2007
    Location
    Lincolnshire
    Posts
    117
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    17
    Hey Sted, Yes they are on a domain and do you mean a logon script or batch file or what, and what does it need to say or have in? and how do i do that?

    thanks
    nick

  4. #4

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Quote Originally Posted by tri_94 View Post
    i've tried a batch file however this appears to be no way of entering a username and password. so that fails
    If you have access, and are running cmd as admin you shouldn't need to enter a username/pass. Does the file copy work if you just run cmd as admin, and type it in? Rather than .BAT?

    Steve

  5. #5

    Join Date
    Oct 2006
    Location
    uk
    Posts
    494
    Thank Post
    19
    Thanked 3 Times in 2 Posts
    Rep Power
    16
    @echo off
    echo y|xcopy \\servername\netlogon\rm-cc4.bmp c:\

    save in a .bat file called login.bat and use as the login script in Active directory.

    Any help?

  6. #6


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,576
    Thank Post
    228
    Thanked 852 Times in 731 Posts
    Rep Power
    294
    i just add a script to an appropriate software deploy gpo as a startup script

    something like

    Code:
    copy "\\server\NETLOGON\files\2simple\2mt.ini" "C:\Program Files\2Simple Software\2Simple collection\Music Toolkit\" /y
    script.jpg

  7. #7

    Join Date
    Oct 2006
    Location
    uk
    Posts
    494
    Thank Post
    19
    Thanked 3 Times in 2 Posts
    Rep Power
    16
    tri94 did you get sorted with this?

SHARE:
+ Post New Thread

Similar Threads

  1. [SCCM 2007] moving sccm database to remote machine
    By sparkeh in forum O/S Deployment
    Replies: 2
    Last Post: 27th August 2010, 05:57 PM
  2. Replies: 4
    Last Post: 25th December 2006, 09:15 PM
  3. Replies: 19
    Last Post: 20th June 2006, 03:53 PM
  4. Replies: 3
    Last Post: 1st March 2006, 12:08 PM
  5. script to copy files to machines
    By browolf in forum Scripts
    Replies: 1
    Last Post: 28th November 2005, 10:28 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
  •