Solved

sharing more than one folder by suing few steps..

Posted on 2004-08-19
8
203 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
Comment Utility
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
Comment Utility
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
Comment Utility
then you can create batch files.  You could probably do this with a vbs or javascript too.
0
 

Author Comment

by:mkhalidmn
Comment Utility
but how Adamdrayer...

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

Accepted Solution

by:
adamdrayer earned 30 total points
Comment Utility
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

NetScaler Deployment Guides and Resources

Citrix NetScaler is certified to support many of the most commonly deployed enterprise applications. Deployment guides provide in-depth recommendations on configuring NetScaler to meet specific application requirements.

Join & Write a Comment

Suggested Solutions

The DSL Parameters part of this article is valid and can be considered with any brand of internet router and modem (Dlink, 3com, Alcatel, Usrobotics, Parks), by accessing the configuration interface available by the manufacturer eg: http://10.1.1.1 …
I was recently sitting at a desk at work with one of my colleagues and needed some information on my home computer. He watched as I turned on my home computer, established a remote session into it, got the information I needed and then shut it down …
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now