1.

Solve : Automated copying and scheduling over LAN?

Answer»

Hey All,

I don't really know much about VBscript, but I am trying to make a little script, and it is definitely out of my range of expertise...

I have a local area network, and I have made a little Batch program to run a specific video FILE for a certain period each night. I want to make it all scheduled via Windows Scheduling, but I'd really rather not take the TIME to VNC to each computer and set everything up manually, so this is what I'm trying to aim for:

One script (or something) that will run from the host computer, and copy files from the shared folder to a dir on root (C:\) for each computer on the network (I think 14 PCs). Once it has copied the files/folder, I would want it to automatically delete any scheduled tasks, and create a new task that addresses EXAMPLE.exe to run on specified night from X to Y times.

Anyway... I'm not really sure how ELSE to explain what I'm trying to do... but yeah. It doesn't necessarily need to be using VBScript either... I am willing to apply basically anything I think.

Also, all of the computer on the LAN are running Win XP Pro (I believe SP2, but possibly SP1).

Thanks in advance,
kyle_engineerFirst of all, I am not capable of helping you. But here are some observations.

Why must you put it on the C:\ of any PC? This is not a good practice. All of the PCs should have a folder call "Shared Docs" or something like that.
It is also named as:
C:\Documents and Settings\All Users\Documents
That folder can be set to allow full red and write for the administrators.
Also, the administrator can put tasks on a remote machine manually. But it can be set to repeat on every Monday at 8AM or whatever. Here is a screen shot of a PC in the work group

That is all I know.The reason that I want a copy on each computer is primarily because of the fact that 14 computers streaming the same media from a server for 8 - 10 hours might be very difficult for these older computer, that's one of my thoughts. Also, I personally like the idea of localizing all of the operations.

However, I do get what you're saying, and if it proves to be too difficult to be worth it, I'm sure I'll end up going your way.

Anyway, thanks Geek-9pm. You have lots of options. Each PC could be o n a sked to load the file, not all at the ametime.
Perhaps a few min apart, and then all start playing at a given time. The filename on the server would always be the same, just the content would change each day. If the content is null, no show today.

The VLC program is often used for streaming on LAN. Apparently it works for otters. MAYBE it will work for you. It can be either a client or a server. Very nice little program. And it is mostly free.
http://www.engadget.com/2005/11/29/how-to-stream-almost-anything-using-vlc/
Or just Google VLC and find lots of posts. Quote

One script (or something) that will run from the host computer, and copy files from the shared folder to a dir on root (C:\) for each computer on the network (I think 14 PCs). Once it has copied the files/folder, I would want it to automatically delete any scheduled tasks, and create a new task that addresses EXAMPLE.exe to run on specified night from X to Y times.

I think the easier way would actually be to do it backwards. Make a share on the host computer which contains the video file. Then map a network DRIVE on each of the clients. Make a script that simply copies the file from the network drive (ex: drive Z:) to drive C: and plays it. Put that script on the network drive and add it as a scheduled task on each of the comps.


And look here if you need help with with the scheduled tasks command: http://www.robvanderwoude.com/schtasks.phpLinux711, thank for the link. Looks interesting.For automated copying/mirroring, I use Unison.  Might help out with your needs?

http://www.cis.upenn.edu/~bcpierce/unison/

Works cross platform - I use it to keep a directory on one of my Linux servers at home synchronised with a directory on a PC at work.


Discussion

No Comment Found