methodclass Posted December 10, 2007 Posted December 10, 2007 Hello all, As title suggests, is there a function similar to fileexists() that can test whether a UNC path exists and is valid. Short and sweet, james
Developers Jos Posted December 10, 2007 Developers Posted December 10, 2007 Should work fine... did you try it ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
methodclass Posted December 10, 2007 Author Posted December 10, 2007 Should work fine... did you try it ?sorry should have mentioned thatdoesnt work with folder or printer shares, have tried dns name/ip address, no go..
Developers Jos Posted December 10, 2007 Developers Posted December 10, 2007 sorry should have mentioned thatdoesnt work with folder or printer shares, have tried dns name/ip address, no go..Printshares is something different but \\servername\sharename works fine. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jguinch Posted December 10, 2007 Posted December 10, 2007 Hello,You can use the net view command line, and store the result in a temporary file and read it with AutoItyou can use a script like this : $computer = "\\IPAddress"RunWait(@comspec & ' /c net view ' & $computer & ' > ' & '"' & @TempDir & '\netview.txt"')You have just to use the AutoIt files fonctions to read the resultAnother way is to use DriveMapAdd without giving a device name :Instead of using FileExist, try :If DriveMapAdd("", "\\computer\share") ... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
methodclass Posted December 12, 2007 Author Posted December 12, 2007 Hello,You can use the net view command line, and store the result in a temporary file and read it with AutoItyou can use a script like this : $computer = "\\IPAddress"RunWait(@comspec & ' /c net view ' & $computer & ' > ' & '"' & @TempDir & '\netview.txt"')You have just to use the AutoIt files fonctions to read the resultAnother way is to use DriveMapAdd without giving a device name :Instead of using FileExist, try :If DriveMapAdd("", "\\computer\share") ...i was thinking id have to do something along the lines of this... thanks for the sample code...
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