Solved

sharing more than one folder by suing few steps..

Posted on 2004-08-19
8
208 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
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cant ping a windows 10 computer 12 61
Confused about VPN connection and private IP addresses..?? 5 59
2 Gateways (bandwidth) - One domain 7 73
IPv6 NAT to IPv4 27 47
Let’s list some of the technologies that enable smooth teleworking. 
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

808 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