net share with bat file RRS feed

  • General discussion

  • I'm trying to get an existing google drive stream folder to be shared when manually loading the bat file. 

    I've tried:
    net share Projects=Y:\My Drive\Projects /GRANT:everyone,FULL

    but I get the following:
    The syntax of this command is:

    net share


    can anyone lend advice?


    • Changed type Bill_Stewart Wednesday, July 22, 2020 9:58 PM
    • Moved by Bill_Stewart Wednesday, July 22, 2020 9:58 PM Off-topic
    Monday, April 6, 2020 9:39 PM

All replies

  • net share /?

    Follow the instructions.

    It is not normally possible to share a mapped drive.  What you are trying to do cannot be done in Windows.


    Tuesday, April 7, 2020 1:22 AM
  • Sorry, your brevity isn't helpful.  I can manually share the google file stream folder, but not able to do so with the bat file. 

    The rest of your comment I don't understand.  Is there something incorrect about my command syntax?


    Tuesday, April 7, 2020 5:31 PM
  • Sorry, but your question doesn't make any sense.

    You will need to write a better question, preferably with correct terminology so that those reading your question don't have to guess what you mean.

    -- Bill Stewart [Bill_Stewart]

    Tuesday, April 7, 2020 9:53 PM
  •   Is there something incorrect about my command syntax?

    Yes, there is a space between My and Drive. You will need to use quotes.

    net share Projects="Y:\My Drive\Projects" /GRANT:everyone,FULL

    I have not used google drive stream folders, but to expand on jrv's second point.... normally only local drives (like c:\) are shared out on a machine. A network drive that would be mapped when you log on is tied to your account, not the machine. So if you're not logged on, there is no Y drive to share on the network. 

    The normal way of doing that would be to have the users that you are trying to share the files with, install the  google software on their machines and have them go directly to google and not use your pc as a proxy.  

    I'd also be concerned about how file security would work. 

    • Edited by MotoX80 Thursday, April 9, 2020 4:35 PM
    Thursday, April 9, 2020 4:30 PM
  • Also, re-sharing a network drive is a classic security violation.


    Thursday, April 9, 2020 4:50 PM