Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sharing more than one folder by suing few steps..

Posted on 2004-08-19
8
Medium Priority
?
214 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 120 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
Make the most of your online learning experience.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

722 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