Solved

sharing more than one folder by suing few steps..

Posted on 2004-08-19
8
213 Views
Last Modified: 2010-04-11

i want to share 100 folders by just using few steps .. how can i do this ?

i know i could put them in one folder and then share it... but any other way?
0
Comment
Question by:mkhalidmn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
8 Comments
 
LVL 15

Expert Comment

by:Yan_west
ID: 11842472
You got it, put them all in a folder, and share this folder..

If you want to do it the other way, right click on each folder, and share them one by one.. it'S the only way to go..
0
 
LVL 15

Expert Comment

by:adamdrayer
ID: 11847022
For windows machines I believe you can create shares using the "net share"

The syntax of this command is:


NET SHARE sharename
          sharename=drive:path [/USERS:number | /UNLIMITED]
                               [/REMARK:"text"]
                               [/CACHE:Manual | Automatic | No ]
          sharename [/USERS:number | /UNLIMITED]
                    [/REMARK:"text"]
                    [/CACHE:Manual | Automatic | No ]
          {sharename | devicename | drive:path} /DELETE

NET SHARE makes a server's resources available to network users. When
used without options, it lists information about all resources being
shared on the computer. For each resource, Windows reports the
devicename(s) or pathname(s) and a descriptive comment associated with it.

sharename          Is the network name of the shared resource. Type
                   NET SHARE with a sharename only to display information
                   about that share.
drive:path         Specifies the absolute path of the directory to
                   be shared.
/USERS:number      Sets the maximum number of users who can
                   simultaneously access the shared resource.
/UNLIMITED         Specifies an unlimited number of users can
                   simultaneously access the shared resource
/REMARK:"text"     Adds a descriptive comment about the resource.
                   Enclose the text in quotation marks.
devicename         Is one or more printers (LPT1: through LPT9:)
                   shared by sharename.
/DELETE            Stops sharing the resource.
/CACHE:Automatic   Enables offline client caching with automatic reintegration
/CACHE:Manual      Enables offline client caching with manual reintegration
/CACHE:No          Advises client that offline caching is inappropriate

NET HELP command | MORE displays Help one screen at a time.
0
 
LVL 15

Expert Comment

by:adamdrayer
ID: 11847029
then you can create batch files.  You could probably do this with a vbs or javascript too.
0
 

Author Comment

by:mkhalidmn
ID: 11858561
but how Adamdrayer...

i m not good in vbs ...
0
 
LVL 15

Accepted Solution

by:
adamdrayer earned 30 total points
ID: 11859079
NET SHARE PUBLICFOLDER=C:\FOLDER1 /UNLIMITED

Where
C:\FOLDER1 is the path that you would like to share
PUBLICFOLDER is the name you would like it shared as

so if the above were exectued on a computer who's name was WORKSTATION1, then connecting to \\WORKSTATION1\PUBLICFOLDER would connect you to that computers C:\FOLDER1 directory.

as far as batch files, you do not need vbs.  just put a bunch of DOS commands into a text file and give it a .bat or .cmd extension, and then it becomes a batch file.  You can run it and all the DOS commands inside will be run.  Most people also like to start it off with "@ECHO OFF" as the first line.  It suppressed showing the computer running the commands.

For Example:

@ECHO OFF
NET SHARE PUBLICFOLDER1=C:\FOLDER1 /UNLIMITED
NET SHARE PUBLICFOLDER2=C:\FOLDER2 /UNLIMITED
NET SHARE PUBLICFOLDER3=C:\FOLDER3 /UNLIMITED
NET SHARE PUBLICFOLDER4=C:\FOLDER4 /UNLIMITED
NET SHARE PUBLICFOLDER5=C:\FOLDER5 /UNLIMITED
NET SHARE PUBLICFOLDER6=C:\FOLDER6 /UNLIMITED
NET SHARE PUBLICFOLDER7=C:\FOLDER7 /UNLIMITED


put that into a text file and make sure it has a .bat extension.  then run the program and you will have shared all the directories above.   Just make sure you replace the FOLDER1 names with actual folders on your comptuer.

as far as vbs and javascript, I'm not good enough to write you out code to do that, but I would suggest that you not worry too much about those languages if you don't understand batch files.
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Make the most of your online learning experience.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month3 days, 11 hours left to enroll

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question