New Plugin: Network Drive Reconnector (1 Viewer)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Hi folks,

    I'm currently developing a new plugin =) it was pretty nasty that I had to reconnect my network drives manually every time if my main PC wasn't started before the media PC

    This little Plugin checks at the start of MP if all drives are connected if not it will try to reconnect.
    If there is any drive not connected it will try every 5 minutes to reconnect. After all drives are reconnected it stops trying ;)

    In the attachment is the Plugin + source, there is space for improvements (maybe you have some), but it works ;)

    Installation:
    1. Copy the xml file (NetworkDriveReconnector.xml) from the Skin folder in the archive to your Skin, e.g. MP_USER_FOLDER/Skin/PureVisionHD/ (this file is for PurvisionHD, but should work with ervery skin)
    2. Copy the dll file (NetworkDriveReconnector.dll) from the bin/debug or bin/release folder into your window plugin folder from Mediaportal
    that's all =)

    Notice:
    The dll in the archive is in Debug-mode ;) You will find the log file in the MP log folder.

    Update
    [05.10.2010]
    - Updated NetworkDriveReconnector bin 0.2.rar (Skinfile was missing)

    Update v 0.2
    [24.09.2010]
    - removed the force option by mapping the network drive
    - saveCreds = true (saves the user data for the networkDrive for the auto-mapping from windows

    Download:
    At the bottom of the post :)


    Hopefully it will help some more people ;)
     

    Attachments

    • NetworkDriveReconnector src 0.2.rar
      1.8 MB
    • NetworkDriveReconnector bin 0.2.rar
      1.8 MB

    ichessblumen

    MP Donator
  • Premium Supporter
  • November 21, 2006
    456
    18
    Home Country
    Germany Germany
    Great thingy. Could you provide a howto for implementation? After unzipping, I do not know how to get this going.

    thx
    ieb
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: New Plugin: Network Drive Reconnector

    I updated my old post ;)

    I have also a new version, I will post it later when I'm at home again =) Sometimes it can happen that your networkdrives get deleted, but with the new version it shouldn't happen again =) Further you can use the old and the new skinfile ;)

    If you find any bugs let me know =)

    greetings

    //EDIT

    I added the new Version on the bottom :D

    // Edit2

    removed the attachment and moved it to the top
     

    Boiler

    Portal Pro
    July 29, 2007
    160
    7
    Home Country
    Switzerland Switzerland
    AW: New Plugin: Network Drive Reconnector

    this sounds great, but how does it work? where do specifiy my networkdrives???
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: New Plugin: Network Drive Reconnector

    Sorry for my late reply, I wasn't at home ;)

    It looks which networkdrives already exists and if they are already connected. If they are disconnected, the plugin trys to reconnect as long as it was successful.
    That means that you have to map your networkdrives once as persistant in the windowsexplorer ;)

    I hope I could help you ;)

    Lg
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: New Plugin: Network Drive Reconnector

    I updated my first post and added also a releasversion without so much debug output (in src: debug=false; no DEBUG define), but I still recommend the debug version because it is still in a very early state of development and there could be some problems which I dont know yet^^
     

    ichessblumen

    MP Donator
  • Premium Supporter
  • November 21, 2006
    456
    18
    Home Country
    Germany Germany
    hi freaky,

    I'm with stupid...

    "Installation:
    1. Copy the xml file from the Skin folder to your Skin (this file is for PurvisionHD, but should work with ervery skin
    2. Copy the dll file from the bin/debug folder into your window plugin folder from Mediaportal
    that's all =)
    "
    What xml? I cannot find the xml in any folder after unzipping.
    And which file? There are more than one in the debug folder !?
    Sorry for stupid questions, but it isnt that easy as you wrote :p
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    AW: New Plugin: Network Drive Reconnector

    sorry again

    I updated the insatllation notes and the bin archive, because the skinfile was missing :(
    I hope the installation notes are now correct, because I currently can't access the dirstructure from my HTPC, but I think you will find everything now, if not just ask again =)
     

    Users who are viewing this thread

    Top Bottom