Administrative Share after device plugging
Page 1 of 1

Author:  ProCompSys [ Sun Feb 05, 2012 2:17 am ]
Post subject:  Administrative Share after device plugging

I used to net-share devices as administrative share after plugging using this command-line:

net share %DriveLetter%$=%DriveLetter%:

Since I don't use or check its functionality too often, I only now found out, it doesn't work anymore.
Examining the commandline I found that p.ex.

net share L:$=L::

obviously makes no sense.
But as it has worked before, I guess there must have been a change in the variable %DriveLetter%.
I guess it used to be the Drive-Letter without the colon at the time I wrote the line, making it

net share L$=L:

which works like a charm.

Now I don't see any other solution as to call an external batch-script, which removes the colon from the variable and net-share it from there.

Can you confirm you changed the variable-content to the additional colon?
Is there another variable at hand that contains only the Drive-Letter without the colon, so I can use a single commandline in the input-field without calling an external batch-script?

Greetings from Germany!

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group