![]() |
Need to copy a file accross the network....
Hi all,
Ok then, situation is we have a new license file that needs to be installed on every desktop, i really cant be arsed (is the best way of putting it) to go round to each desktop and get the file and put it into the correct place... i tried to write a bat script, but obviously batch scripts only work in dos, and dos doesnt like UNC paths.... any other ideas??? what i want to be able to do, is send an e-mail to them all, and they click the link on their e-mail and it does the rest for them.... it doesnt overwrite, or anything like that, it is a new license file... The desktops concerned are a mixture between XP Pro, and Win2K Thanks :) |
Re: Need to copy a file accross the network....
What's the "license file"?
Can't you make an MSI to deploy or maybe drop a script into the logon server share? |
Re: Need to copy a file accross the network....
they dont all have script logins :( only specfic dept's do :(
the license file is for a new internal messenger system that we started using.... the 7 day trial expired so i bought it today.... they require the license file to be dropped in with the installation..... |
Re: Need to copy a file accross the network....
Tricky...
The only way I can see is doing this: - Create a .zip with "install.bat" and "license.lsc" (or whatever the filenames are) - Tell them to extract the .zip to their desktop and run the batch file which copies the license to the location. Complicated though, and will probably mean many users messing it up. I'm sure someone else can think of a better way. |
Re: Need to copy a file accross the network....
mmmm..... i mean there has to be a windows based way, just not sure which :S
__________________ found it :D dos didnt like the c:\program files\ etc.... so changed it to the old dos, and it worked perfectly (i.e. c:\progra~1\) |
Re: Need to copy a file accross the network....
Are all the machines on the network?
perform a net view > machines.txt edit machines.txt to remove the information not required leaving you with \\machinename on each line write a batch file with something along the lines of: @echo copy mylicencefile.lic %1\c$\locationoffile then use from a cmd prompt: for /f %v in ( machines.txt ) do batchfile %v This will call the batch file for each line in the machines.txt providing the content of each line in variable %v PS. You'll need to be an admin on each box to connect to the C$ share! |
Re: Need to copy a file accross the network....
Quote:
copy mylicencefile.lic "%1\c$\locationoffile" or similar. I think the key is to enclose paths containing spaces in quotes. |
Re: Need to copy a file accross the network....
Quote:
|
Re: Need to copy a file accross the network....
Sweet, thanks guys.....
Ill have to sort them all out with login scripts, even if it just says weclome... really, so that in the future i wont need to naff around with stuff like this :p |
Re: Need to copy a file accross the network....
Doesnt anyone use windows scripting?
I thought that was supposed to be able to replace dos batch files & work over networks easily etc. |
All times are GMT +1. The time now is 08:20. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum