Jump to content

Pasting a file to multiple PC's on the workgroup.


Samio866

Recommended Posts

Greetings. :hello:

Scenario :: Random.txt needs to be updated on 20 Lab computers which is seperate from our domain... (on their own workgroup because they run machines)

How we used to do it :: Manually go to each computer and copy/paste Random.txt from the server.

How we would like to do it :: Run a file that automatically does it and be very, very happy.

Any Idea's?

Live Long and Prosper,

- Samuel

Link to comment
Share on other sites


i think if you add to startup a bat file in all computers

startup.bat with

@echo off
cd \somwhere
wget http://someserver/random.txt
exit

it will be possible i think

you'll need wget.exe > http://users.ugent.be/~bpuype/wget/

That's assuming Samio866 is running a web server somewhere. If you can setup a share on a computer/server on your domain and allow Guest access to it, then you can use this startup batch file on your 20 lab computers or setup a scheduled task to run it when you want:

@echo off
copy \\path\to\server\share\to\copy\random.txt c:\path\to\folder\to\paste
exit

Link to comment
Share on other sites

How does the Startup Batch work? If I can just turn off all laptops and turn them back on and they update... that will be great! Let me try to get into a little more detail below...

Random.txt is updated by my computer as I put in more scientific formula's and information for the robo machines to read from.

Location :: The Master Random.txt is located in \\server\documents\random.txt

Needed Location :: C:\ALCAT\Random.txt

How exactly could I Implement a scheduled task or etc? Perhaps redirect me to a sample URL of a how-to tutorial will be very helpful.

Link to comment
Share on other sites

What operating system do the laptops have?

You will undoubtedly have to copy the script (startup.bat) manually on each laptop at first in C:\Documents and Settings\All Users\Start Menu\Programs\Startup (if on XP), but this will allow it to run every time someone logs into the laptop. You're probably better off copying the startup script to the root of the drive (C:\), setting up a scheduled task as described here, and letting it run when you schedule it to run!

Link to comment
Share on other sites

The laptops are running Windows XP SP2... I'll take a look into what you posted for me, hopefully we'll be able to figure this out.

What I would like is a solution to execute the script (that will take the master random.txt file and paste it in the C:\ALCAT of every laptop) at my sitdown office computer outside of the lab. Going in and out of the lab and touching the PC's may contaminate the delicate samples they have.

I guess the sitdown doesn't make sense because I dont have permission's to all of the laptops, so I guess startup.bat and pulling from the source and pasting at the destination is a good solution.

I guess the script would look like...

@echo off

copy \\csserver\\Doc Control\\MasterTray\\Tray.txt c:\Alcat

exit

Paste that in notepad.

File > Save as > Startup.bat (All Files Selected)

Insert it in all of the Lab computers (C:\Documents and Settings\All Users\Start Menu\Programs\Startup)

Restart and the file should be updated :) Giggidy!

...and that should work?

Edited by Samio866
Link to comment
Share on other sites

The laptops are running Windows XP SP2... I'll take a look into what you posted for me, hopefully we'll be able to figure this out.

What I would like is a solution to execute the script (that will take the master random.txt file and paste it in the C:\ALCAT of every laptop) at my sitdown office computer outside of the lab. Going in and out of the lab and touching the PC's may contaminate the delicate samples they have.

I guess the sitdown doesn't make sense because I dont have permission's to all of the laptops, so I guess startup.bat and pulling from the source and pasting at the destination is a good solution.

I guess the script would look like...

@echo off

copy \\csserver\\Doc Control\\MasterTray\\Tray.txt c:\Alcat

exit

Paste that in notepad.

File > Save as > Startup.bat (All Files Selected)

Insert it in all of the Lab computers (C:\Documents and Settings\All Users\Start Menu\Programs\Startup)

Restart and the file should be updated :) Giggidy!

...and that should work?

@echo off
copy "\\csserver\Doc Control\MasterTray\Tray.txt" c:\Alcat
exit

See my corrections above. Note that this will ALWAYS execute when someone LOGS IN to the laptop.

Since this has to do with XP... [ Moved. ]

Link to comment
Share on other sites

Ah, only when they LOG IN.... I suppose thats easy enough... create a dummy account named "A" and make the password "A". Heh, Thats okay, the tray file is updated every other week, so its good if they keep getting a fresh copy of the tray file from the server... I'll test it with Laptop 1 and see if the doctors like it... or not... in the case were we must update, we can force the laptops to shutdown and then have them relog.

Link to comment
Share on other sites

Ah, only when they LOG IN.... I suppose thats easy enough... create a dummy account named "A" and make the password "A". Heh, Thats okay, the tray file is updated every other week, so its good if they keep getting a fresh copy of the tray file from the server... I'll test it with Laptop 1 and see if the doctors like it... or not... in the case were we must update, we can force the laptops to shutdown and then have them relog.

If you only want it to run when the account named "A" logs in, then you should place it in C:\Documents and Settings\A\Start Menu\Programs\Startup. Good luck! :thumbup

Link to comment
Share on other sites

**EDIT**

Thanks for clearing things up.

Scenario :: "File" needs to be copy/paste on 20 different laptops.

Solution 1 :: Join all the PC's to the domain, log all of them into a username (e.g "Dumbo101"), have the server do a script (Copy/paste script) when that specific user logs in.

Solution 2 :: Create a startup.bat with the script lines in it, and log off of the laptop, and log back in and it should automatically do the copy and paste.

Solution 3 :: Read/Write Access to all of the laptops, install nclip.exe, have the 20 ''destination folders'' set up in nclip, and have the source as the file, then execute and the file should be in all 20 laptops.

Thanks very much, you've guys been a great help!

Edited by Samio866
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...