There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
audio avg avg 8 blue screen brand new codec control panel conversion crash delete personal data desktop display dos driver duplicate dvd error error message excel explorer file firefox game graphics hardware hijackthis log install installation internet itunes javascript laptop macro malware monitor msconfig msn music network outlook outlook 2003 outlook express php problem program random rundll32 security seo sound sp3 spyware switch tag cloud trojan usb video virtumonde virus vista visual basic vundo wallpaper windows windows vista windows xp wireless word xp sp3 youtube
Networking
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Networking >
Simple Command To Solve A Big Problem?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
strikerttd's Avatar
Junior Member with 4 posts.
 
Join Date: May 2008
Experience: Intermediate
09-May-2008, 08:46 AM #1
Simple Command To Solve A Big Problem?
Hello fellow!

I am new to these forums, and have decided to give them a question of my own.

I have a network of PCs of 100+ computers, and have a single file that I need to place on every computer. They all have a single folder shared, which is named exactly the same as the next, so my question is this:

Is there a command that I could use to copy a file from my computer to the folder on each of the Computers on my network, without having to type the command 100+ times?

In a simple way, I am asking this -- Is it possible to do this:

copy "c:\something.bat" "\\*\c:\shared folder\something.bat"

I am sure that we have all had a bit of command line experience, so this command should be pretty easy to understand.
JohnWill's Avatar
Computer Specs
Moderator with 74,061 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
09-May-2008, 08:56 AM #2
No, but if you have a list of the computer names in the computers in the network, you could write yourself a canned script file to do the job.

copy "c:\something.bat" "\\computer_1\c:\shared folder\something.bat"
copy "c:\something.bat" "\\computer_2\c:\shared folder\something.bat"
copy "c:\something.bat" "\\computer_3\c:\shared folder\something.bat"
etc.
__________________
Microsoft MVP - User Desktop Experience

If you think experts are expensive, wait until you see what amateurs cost you!

Help me out with some details here, I'm brilliant, not clairvoyant!
strikerttd's Avatar
Junior Member with 4 posts.
 
Join Date: May 2008
Experience: Intermediate
09-May-2008, 09:33 AM #3
Well, it does not have to be in the form of a batch file.

If there is a bit of program code that can locate network machines, that would be a big help also.

Basically, I am looking for the simplest way to be able to do this, whether it be MS-DOS commands, or C++.
JohnWill's Avatar
Computer Specs
Moderator with 74,061 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
09-May-2008, 09:47 AM #4
Well, you could write a program to scan the network for all the connected machines, but that's going to be more time consuming than just hacking together a batch file.
strikerttd's Avatar
Junior Member with 4 posts.
 
Join Date: May 2008
Experience: Intermediate
09-May-2008, 01:43 PM #5
That's... Not really the answer I was looking for, but I know I can build a program to do this for me..

I am not doing this for just one file, it will be used for multiple files and perhaps will be used in the future, so technically speaking, it will save me a lot of time.

Now, I know that I did not tell you this, but it was not necessary at the time. All I asked for was simple code to make my life easier, but it seems that coming here has just cost me time that I could have used for more constructive purposes.

So please, do not try to tell me something that I my stunning grammar would have not already made you assume that I am more intelligent than a household mother of five who just needs some quick answers, and that I would have already assumed the aspect of my problem from which you have just made more apparent to me.

Thank you for your time, but try to me more of an adult the next time you answer someone else's questions. This website is for adults, not children.
JohnWill's Avatar
Computer Specs
Moderator with 74,061 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
09-May-2008, 07:15 PM #6
Well, I fail to see how I insulted you, but your childish outburst here makes me think that if you're an adult, you don't know how to act like one.

We can only respond to the information provided and the scenario you present. You asked for a simple solution, and I presented one. Very few people are equipped to write a program to address a more complex solution to an issue like this. Obviously, if it's a scenario that will be repeated with different parameters many times, it starts to make more sense. However, you gave no hint that you know C++ from a hole in the ground, so one could only assume that programming was not an option, lacking any information to the contrary.

Refer to the last line in my signature, I really am not clairvoyant.
__________________
Microsoft MVP - User Desktop Experience

If you think experts are expensive, wait until you see what amateurs cost you!

Help me out with some details here, I'm brilliant, not clairvoyant!
Courtneyc's Avatar
Computer Specs
Senior Member with 690 posts.
 
Join Date: Dec 2003
Location: Kansas
Experience: A+ Net+ Sec+ MCP MCSA MCSE MCT
09-May-2008, 09:00 PM #7
Out of curiosity: How are the 100+ computers on your network set up? Is this a peer-to-peer network, or are they on a domain? If they are on a domain, you can do it without writing a single program.

If they are peer-to-peer, an easy way is to share the file from a specific folder on one machine. Have the other machines copy the contents of that specific folder to they local machines using a simple one-line script (run it from the Startup folder).

I'd need more information than what you provided to be more specific.

Courtney
Squashman's Avatar
Distinguished Member with 11,900 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
09-May-2008, 11:08 PM #8
100+ Computers and you don't have a naming scheme for them.

100+ computers would have a difficult time on a peer to peer workgroup network. I am hoping he is on a domain.

This is an easy enough batch file if you can get a list of your Computer names and hopefully they all have the same share name and path. You can make a loop in a batch file to pull in the computer names one at a time and copy the file to each of the computers shares.

You can use NBTscan to get a list of your computer names.
http://www.inetcat.net/software/nbtscan.html
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
JohnWill's Avatar
Computer Specs
Moderator with 74,061 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
10-May-2008, 01:43 PM #9
Actually, the NBTscan -e seems to be a better choice for the task.

Cute little utility, thanks for posting it.
Squashman's Avatar
Distinguished Member with 11,900 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
11-May-2008, 12:10 AM #10
Quote:
Originally Posted by JohnWill View Post
Actually, the NBTscan -e seems to be a better choice for the task.

Cute little utility, thanks for posting it.
Well, I didn't think I needed to post the actual code he needed to use. You can lead a horse to water, but you can't make him drink it.
JohnWill's Avatar
Computer Specs
Moderator with 74,061 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
11-May-2008, 03:24 PM #11
Quote:
Originally Posted by Squashman View Post
Well, I didn't think I needed to post the actual code he needed to use. You can lead a horse to water, but you can't make him drink it.
That's certainly true! However, I got the impression in this case it might be necessary.
Reply


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

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
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:28 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.