jbennett Posted October 30, 2008 Share Posted October 30, 2008 (edited) Hi everyone, I seem to be having a problem with drivestatus at the moment. I'm trying to detect if a network storage drive is available. The code works fine when i'm logged in but then as soon as I reboot and try again it doesn't work. I keep having to switch between "INVALID" and "UNKNOWN" in the code to get it to work. Hope this makes sense as it's driving me crazy. Thanks Edited October 30, 2008 by jbennett Link to comment Share on other sites More sharing options...
zorphnog Posted October 30, 2008 Share Posted October 30, 2008 Post your code. Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 30, 2008 Share Posted October 30, 2008 Is the drive mapped automatically on login? Does the network connect automatically to the share if it's not a mapped drive? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
jbennett Posted October 30, 2008 Author Share Posted October 30, 2008 (edited) Hi, I've got it to work now and it recognizes if the drive isn't available. The only problem is the code doesn't continue once i connect the drive until I open the mapped drive from My Computer. Strange?. It seems like the drive only becomes active once i've opened it. EDIT ----- The mapped drive is also set to reconnect on login and there isn't a username or password to login Edited October 30, 2008 by jbennett Link to comment Share on other sites More sharing options...
jbennett Posted October 30, 2008 Author Share Posted October 30, 2008 (edited) Hmm i'm thinking something like the following _RunDos (NET USE Y: $map_drive /persistent:YES) The $map_drive bit is something I want to call from an .ini file. Is there any way of adding this to the _RunDos code Thanks Edited October 30, 2008 by jbennett Link to comment Share on other sites More sharing options...
zorphnog Posted October 30, 2008 Share Posted October 30, 2008 _RunDos ("NET USE Y: " & $map_drive & " /persistent:YES") Link to comment Share on other sites More sharing options...
jbennett Posted October 30, 2008 Author Share Posted October 30, 2008 (edited) Got it to work. I want to add the Y: bit to my ini and use $drive_letter within that code. How would I go about that as it doesn't seem to be working if I add that. thanks Edited October 30, 2008 by jbennett Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now