Jump to content

Recommended Posts

  • Developers
Posted

sorry should have mentioned that

doesnt 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.
  :)

Posted

Hello,

You can use the net view command line, and store the result in a temporary file and read it with AutoIt

you 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 result

Another way is to use DriveMapAdd without giving a device name :

Instead of using FileExist, try :

If DriveMapAdd("", "\\computer\share") ...

Posted

Hello,

You can use the net view command line, and store the result in a temporary file and read it with AutoIt

you 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 result

Another 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...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...