It is currently Sun Sep 23, 2018 6:55 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Administrative Share after device plugging
PostPosted: Sun Feb 05, 2012 2:17 am 
User avatar

Joined: Tue Jan 19, 2010 9:43 am
Posts: 3
Location: Germany
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!

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Crystal Rich Ltd © 2018 Powered by phpBB ©