Re: Granting share access permissions from DOS prompt
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 27 Jun 2007 14:39:00 +0200
<dev_prog@xxxxxxxxxxxxxxx> wrote in message
news:1182947055.490256.226850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Gurus,
I was wondering if anyone knows the DOS command to grant/revoke file
sharing permissions of a shared folder.
Basically, I would like to share my USB key on the work network so
that I can access it on any work PC. Every morning, after plugging the
key, it takes (say) drive X:. I then share this as X$ and specify
permissions to my account following a sequence of right-clicks and
entering the names.
I'm hoping if this can be done by a DOS batch file or a VBS script, so
one can do the whole lot by just double-clicking this icon.
In regards to the sharing, it can be done using the NET SHARE dos
command but I don't know how to specify the access permissions as a
dos command.
If anyone has ever touched this area, it will be appreciated to
receive your recommended solution.
Cheers,
Dev
Current usage says that DOS is an operating system. It does not
exist under Windows XP. Your aim is to change permissions
with a "command line".
To make drive X: available to other users, share it as "USBKey"
instead of X$.
AFAIK, the command "net share" will set permissions only on
a Windows 2003 server but not under WinXP. Instead of setting
***share*** permissions, consider setting ***NTFS***
permissions. They can be set with cacls.exe. This implies that
you convert your USBKey from FAT to NTFS, using convert.exe.
You need to set NTFS permissions once only. They become
part of the file system.
Post again if you require more detailed instructions.
.
- References:
- Granting share access permissions from DOS prompt
- From: dev_prog
- Granting share access permissions from DOS prompt
- Prev by Date: Re: Format windows 98 hard drive
- Next by Date: Re: Delete Temp Files Globally
- Previous by thread: Granting share access permissions from DOS prompt
- Next by thread: Re: Granting share access permissions from DOS prompt
- Index(es):
Relevant Pages
|