• WSdrcmg

    WSdrcmg

    @wsdrcmg

    Viewing 3 replies - 1 through 3 (of 3 total)
    Author
    Replies
    • in reply to: Shared Drive No Longer Shared after Reboot #1192231

      I would love to know what it would take for my BAT file to run from the Startup menu :shrug:

      I assume that you have created a shortcut to the BAT file in your startup folder, where is the BAT file itself?

      The bat is located in c:usersgeorge and is named dshare.bat. Like you said I created a shortcut in the startup folder. I just opened notepad typed in: NET SHARE J=J: /GRANT:everyone,FULL hit Enter and saved it. To test I went to sharing on the J drive and unchecked Share this folder in Advanced Sharing. I then tested from one of the other computers and found that I could not access the drive. I then went to the Command prompt and ran the bat. I went back to sharing and found Share this folder was checked. I accessed the drive from the other computers with no difficulty. I then restarted the computer. After I logged in I saw the Command prompt window flash by. I then checked and the Share this folder box was checked and the other computers could access the drive.

      BTW: I am Administrator on the computer.

    • in reply to: Shared Drive No Longer Shared after Reboot #1192167

      I have a VERY similar BAT file that shares a drive that is not available at boot time. My BAT file seems to trip up the Windows 7 UAC stuff and it just won’t run from the Startup folder.

      Have you done anything to disable UAC?

      UAC is on and set at the default level. I haven’t made many changes at all to anything. I wonder if it is because this is a USB drive? The batch file runs after I log in. It ran for me from the Command prompt with no trouble either. I don’t know if it makes a difference, but I am running Home Premium.

    • in reply to: Shared Drive No Longer Shared after Reboot #1192076

      I suspect that Windows is looking at your shares before the external drive is initialized, and since it the drive is not yet available, the shares are disconnected. Quick fix would be to write a small script or batch and put it in the startup. Take a look at the NET command. A batch with a line something like

      NET SHARE MySharedPhotos=G:Photos /GRANT:everyone,FULL

      Would recreate the share every boot, as long as your external drive is on and assigned the same drive letter each time (ie: if you boot with a flash drive in, Windows may assign the flash G and the external H)

      Anyhow, just a thought. Post back if you need more help,

      Cheers,

      NH

      Thanks for the info. I haven’t written any batch files since the DOS days and am not sure exactly how to word this one. The drive is assigned drive letter J: and that is the one that shows up each time. I want the whole drive shared. It is mapped as J: on the other computers as well.

      I spent some time looking at NET and wrote a batch file. I tried it and it worked. I then added it to Startup. I just rebooted the system and the drive is shared. I saw the batch file pop up the Command prompt and execute, so I suspected it would work. This solves a major problem for me. Thanks.

    Viewing 3 replies - 1 through 3 (of 3 total)