Hello,
Does anyone know how to write a script to share out all folders inside a certain folder. Also the shares need to be hidden?
Thanks,
Chris
5 4976 epots9 1,351
Recognized Expert Top Contributor
VBscript or maybe a batch file....but if you only do it to one computer it might be better just to do it manually. to make a share hidden at the end of the share name put a '$', example:
VBscript or maybe a batch file....but if you only do it to one computer it might be better just to do it manually. to make a share hidden at the end of the share name put a '$', example:
Yeah I know how to do it manually but the problem is that I have to do it to nearly 200 folders. I want to be able to do it with a batch file but I am not sure how.
The reason for this is I am migrating the server that has our users home folders on it. Inside the users folder there is all the users folder. I need to share out all 200 of the users folders as hidden.
Thanks
epots9 1,351
Recognized Expert Top Contributor
this is how to create a hidden share: -
net share share1$="c:\program files"
-
with that you'll create a share called share1$ and it will link to program files.
this is how to create a hidden share: -
net share share1$="c:\program files"
-
with that you'll create a share called share1$ and it will link to program files.
Thanks. Can you do a For loop in there to do all the folders inside a folder. I don't know how the code would be but the psudocode would be "For all folders inside users folder"
epots9 1,351
Recognized Expert Top Contributor
Thanks. Can you do a For loop in there to do all the folders inside a folder. I don't know how the code would be but the psudocode would be "For all folders inside users folder"
i don't know how to do a for loop for a batch file, but y don't you share the parent folder? then the sub-folders within will be shared too, then at least you won't have 200+ extra shares showing up in network places
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: steve |
last post by:
Hi,
I finally figured out the best way to synch local and remote script
folders, containing many php script files.
What I used to do before was try to ftp all the changed files, etc.
which was tedious and often broke. It was also very slow.
What I do now is to pkzip the folder up, ftp the pkzip’ed data to
remote, and then unzip it there, which recreates the directories and
files.
|
by: Apostolis K. |
last post by:
I run windows XP and IIS 5.1 and the system doesn't let me to delete or move
folders using FileSystemObject.DeleteFolder(path,force) or
FileSystemObject.MoveFolder(origin,destination). I allow all permitions to
that web folder (Read, Right, Source Access)
I notice that in Windows XP cannot uncheck the Read-Only option in any
folder options. If you uncheck and press OK the next time you open the
folder properties again the check box will...
|
by: brian.oneil2 |
last post by:
Is there a way to install this onto a network file share and allow a
team to access it? I would say share a CD from a networked CD drive,
but there are multiple CD's that would have to be inserted.
TIA,
Brian
|
by: ZMan |
last post by:
Scenario:
This is about debugging server side scripts that make calls to
middle-tier business DLLs. The server side scripts are legacy ASP 3.0
pages, and the DLLs are managed DLLs converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
Background:
For typical script debugging issues, you can read and follow the two
documents on...
|
by: Jeremy S. |
last post by:
We're in the process of writing a new Windows Forms app and the desktop
support folks want for it to be run from a network share. I know it's
possible (i.e., just have the framework on the clients and a desktop
shortcut to the exe out on the network)... but is it really a good idea?
What are some arguments for and against running a .NET Windows Forms client
from a network share? Here is my initial list... I'd appreciate any
additions,...
| |
by: staffonline |
last post by:
Hi Friends,
I recently can not access our share folder on a file server. the share
folder have special permissions (only some domain groups allowed, but i
was a member of that group). but i could access for some public
folders ( everyone can access)
the strange thing is i try to use another workstation, there is no
problem for me to access that folders.
|
by: =?Utf-8?B?aGVjc2FuMDc=?= |
last post by:
Hello
I am fairly new to .NET Development. I need to query folders within a
network drive and return some metadata related to the directories.
For instance, I might have the following path: \\MyServer\Tech
I would want to get the size and name of all the folders inside this folder.
I tried using a simple DirectoryInfo object, but I am getting
AccessDeniedException. I know there has to be a better way of doing this
using Impersonation....
|
by: jaeden99 |
last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with users if it's ok to delete.
Thanks in advance. i found one that was really close but it only looks at one folder. I need it to look at files within folders and subfolders too.
Dim oFSO, wshShell, FileCol, oFolder, objTextFile, shareLength,...
|
by: jonathan184 |
last post by:
Hi I have a perl script, basically what it is suppose to do is check a folder with files. Now the files are checked using a timestamp with the command ls -l so the timestamp in this format is checked. Now what the script does is it checks the time stamp and creates a year folder if it does not exist and then creates a month folder if it does not exist and puts the respective files in the month folders. If the files are created this month then it...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |