Re: Create simple file share on the fly



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


.



Relevant Pages

  • Re: Create simple file share on the fly
    ... There is a simple way to specifiy that the script use the name of the ... share by the name that I specify, on the folder that I specify. ... the example called for creating the share on a remote computer, ... with spawned virtual machines. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Finetuning: Remote Shutdown with WMI, some errors occur.
    ... Allows shutdown, poweroff, or reboot of multiple remote systems. ... - generic unhandled script compile or runtime error; ... "Specify 1 and only one shutdown action" ... Dim erNumber, erDesc ...
    (microsoft.public.windows.server.scripting)
  • Re: use text file for strComputer in VBS script
    ... ' Read each line of the file and set strComputer. ... > 'are not bothered by potential operational errors with the script. ... > ' Specify the text file of computerNames. ...
    (microsoft.public.windows.server.scripting)
  • Re: use text file for strComputer in VBS script
    ... ' Read each line of the file and set strComputer. ... > 'are not bothered by potential operational errors with the script. ... > ' Specify the text file of computerNames. ...
    (microsoft.public.scripting.wsh)
  • Re: use text file for strComputer in VBS script
    ... ' Read each line of the file and set strComputer. ... > 'are not bothered by potential operational errors with the script. ... > ' Specify the text file of computerNames. ...
    (microsoft.public.win32.programmer.wmi)