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. ## 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. if your on a domain why not just run a startup script that just copies from share to local c drive?

3. 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. Originally Posted by tri_94
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. @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. 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. tri94 did you get sorted with this?

SHARE: