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 ...
-
14th October 2011, 12:17 PM #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
-
-
IDG Tech News
-
14th October 2011, 12:35 PM #2 if your on a domain why not just run a startup script that just copies from share to local c drive?
-
-
14th October 2011, 12:37 PM #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
-
-
14th October 2011, 12:38 PM #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
-
-
14th October 2011, 12:44 PM #5
- Rep Power
- 12
@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?
-
-
14th October 2011, 12:48 PM #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
-
-
18th October 2011, 01:45 PM #7
- Rep Power
- 12
tri94 did you get sorted with this?
-
SHARE:
Similar Threads
-
By sparkeh in forum O/S Deployment
Replies: 2
Last Post: 27th August 2010, 05:57 PM
-
By contink in forum Scripts
Replies: 4
Last Post: 25th December 2006, 10:15 PM
-
By Frazer in forum Scripts
Replies: 19
Last Post: 20th June 2006, 03:53 PM
-
By tosca925 in forum Scripts
Replies: 3
Last Post: 1st March 2006, 01:08 PM
-
By browolf in forum Scripts
Replies: 1
Last Post: 28th November 2005, 11: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
-
Forum Rules