Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Need to copy a file accross the network....

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Networking
Register FAQ Community Calendar

Need to copy a file accross the network....
Reply
 
Thread Tools
Old 02-03-2005, 19:05   #1
KingPhoenix
Inactive
 
KingPhoenix's Avatar
 
Join Date: Jun 2003
Location: On top of this heat sink
Age: 44
Services: Sky+ & 8mb ADSL + BT Together option 3
Posts: 2,345
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
Send a message via MSN to KingPhoenix
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
KingPhoenix is offline   Reply With Quote
Advertisement
Old 02-03-2005, 19:17   #2
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 45
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
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?
Richard M is offline   Reply With Quote
Old 02-03-2005, 19:23   #3
KingPhoenix
Inactive
 
KingPhoenix's Avatar
 
Join Date: Jun 2003
Location: On top of this heat sink
Age: 44
Services: Sky+ & 8mb ADSL + BT Together option 3
Posts: 2,345
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
Send a message via MSN to KingPhoenix
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.....
KingPhoenix is offline   Reply With Quote
Old 02-03-2005, 19:28   #4
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 45
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
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.
Richard M is offline   Reply With Quote
Old 02-03-2005, 19:36   #5
KingPhoenix
Inactive
 
KingPhoenix's Avatar
 
Join Date: Jun 2003
Location: On top of this heat sink
Age: 44
Services: Sky+ & 8mb ADSL + BT Together option 3
Posts: 2,345
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
Send a message via MSN to KingPhoenix
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

dos didnt like the c:\program files\ etc.... so changed it to the old dos, and it worked perfectly (i.e. c:\progra~1\)
KingPhoenix is offline   Reply With Quote
Old 02-03-2005, 20:26   #6
Tricky
Inactive
 
Tricky's Avatar
 
Join Date: Jun 2003
Location: I am house...
Services: $KY+HD - BT Infinity
Posts: 2,284
Tricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful one
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!
Tricky is offline   Reply With Quote
Old 02-03-2005, 21:55   #7
JohnHorb
Guest
 
Location: Sale, Cheshire
Services: 10MB Broadband, DTV, Telephone
Posts: n/a
Re: Need to copy a file accross the network....

Quote:
Originally Posted by Tricky
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!
The issue is spaces in filenames. Haven't tried it, but suspect you could mod the above to

copy mylicencefile.lic "%1\c$\locationoffile"

or similar. I think the key is to enclose paths containing spaces in quotes.
  Reply With Quote
Old 02-03-2005, 22:00   #8
Tricky
Inactive
 
Tricky's Avatar
 
Join Date: Jun 2003
Location: I am house...
Services: $KY+HD - BT Infinity
Posts: 2,284
Tricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful one
Re: Need to copy a file accross the network....

Quote:
Originally Posted by JohnHorb
The issue is spaces in filenames. Haven't tried it, but suspect you could mod the above to

copy mylicencefile.lic "%1\c$\locationoffile"

or similar. I think the key is to enclose paths containing spaces in quotes.
Correct you can...or as KP did use the DOS 8.3 filename
Tricky is offline   Reply With Quote
Old 02-03-2005, 22:35   #9
KingPhoenix
Inactive
 
KingPhoenix's Avatar
 
Join Date: Jun 2003
Location: On top of this heat sink
Age: 44
Services: Sky+ & 8mb ADSL + BT Together option 3
Posts: 2,345
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
Send a message via MSN to KingPhoenix
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
KingPhoenix is offline   Reply With Quote
Old 03-03-2005, 08:17   #10
zoombini
Inactive
 
zoombini's Avatar
 
Join Date: Jun 2003
Location: England
Services: I no longer receive cable services, I blame the inept accounts dept for that.
Posts: 3,731
zoombini has reached the bronze age
zoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze age
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.
zoombini is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:31.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.