Re: Create simple file share on the fly
- From: consultmac2 <barryc.ctr@xxxxxxxxx>
- Date: Wed, 12 Sep 2007 19:02:56 -0700
Thanks again for the reference. It does seem like it should be
helpful.
Indeed, I've translated it to perl (ActivePerl) and it does create a
share by the name that I specify, on the folder that I specify. The
thing I'm doing differently than in the example is that I specify my
local computer's name in place of the 'remote' computer's name (since
the example called for creating the share on a remote computer, and my
requirement is different).
Follow-up question #1: Is there a more efficient way to do this for
a folder on the local computer than probing for the computer's name
and specifying it in the place of the 'remote' computer's name?
More important question #2: Could there be something to do with
privileges or rights that I'm not handling with that script? If I
create the share manually via the Windows GUI, the VMWare virtual
machines can access files within that folder/share. But when I have
the script create it, the VMWare virtual machines all fail to be able
to see inside it. Perhaps its related to referring to my local
computer in a 3rd-person fashion? or not?
Thanks.
On Sep 11, 10:06 am, Vinson <Vin...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I do see that the link wraps in my original post, but it still works for me.
The mechanics of these forums can be strange.
Below, I have cut the original link in half. You will have to reassemble
the link below by cutting and pasting the first half to the second. Hope
this works.
http://www.microsoft.com/technet/scriptcenter
/resources/qanda/jan05/hey0107.mspx
Vinson
"consultmac2" wrote:
Vinson,
Thanks! However, I can't tell which issue you are especially
recommending since the URL was cut off. See below. Can you
clarify?
On Sep 10, 10:48 pm, Vinson <Vin...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I would suggest using WMI. It is like VB script, but has libraries for just
what you are trying to do. Here is one way to do it:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jan05/h...
Vinson
"consultmac2" wrote:
I'm trying to find out how to define a file share on the fly
(assuming the capability is enabled) via a DOS (or other) command file/
script, or perhaps VB as a last resort.
I'd like to be able to take a user supplied directory on a local
drive and be able to temporarily (or perm) associate a file share with
it. I'm attempting to work with some compiled programs that I don't
have source code access to... that uses this technique to communicate
with spawned virtual machines (via virtual LAN).
Clues, or pointers?
Thanks
.
- Follow-Ups:
- Re: Create simple file share on the fly
- From: Vinson
- Re: Create simple file share on the fly
- References:
- Create simple file share on the fly
- From: consultmac2
- Re: Create simple file share on the fly
- From: consultmac2
- Create simple file share on the fly
- Prev by Date: Re: Administrator priviliges are gone!!!!
- Next by Date: Re: Create simple file share on the fly
- Previous by thread: Re: Create simple file share on the fly
- Next by thread: Re: Create simple file share on the fly
- Index(es):
Relevant Pages
|