RìggníX Posted March 3, 2007 Share Posted March 3, 2007 hi i want to check, if a network computer with known ip has shared at least 1 folder, because a want to open it with Run("explorer \\" & $ip)oÝ÷ Ú+kçb·«¢+Ù¥ÉÑM¥é oÝ÷ Ù»×hzÉ÷öÜ(®L"¶Þ· +ljëh×6InetGetSize() also doesn't work. any ideas?? greetz, RìggníXBiTrAtE.tk Link to comment Share on other sites More sharing options...
ptrex Posted March 3, 2007 Share Posted March 3, 2007 @RìggníX maybe this might help you $strComputer = "." ;Your IP here $objWMIService = ObjGet("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & $strComputer & "\root\cimv2") $colShares = $objWMIService.ExecQuery("Select * from Win32_Share") For $objShare in $colShares consolewrite ("Allow Maximum: " & $objShare.AllowMaximum &@CR ) consolewrite ("Caption: " & $objShare.Caption &@CR ) consolewrite ("Maximum Allowed: " & $objShare.MaximumAllowed&@CR ) consolewrite ("Name: " & $objShare.Name &@CR ) consolewrite ("Path: " & $objShare.Path &@CR ) consolewrite ("Type: " & $objShare.Type &@CR ) consolewrite ("---------------------------------"&@CR) Next regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
RìggníX Posted March 3, 2007 Author Share Posted March 3, 2007 hmm... i don't no how i could use this.... (i'm a noob ) but i think it should work with DirGetSize() somehow... in the help file there's an exaple with the path \\10.0.0.1\h$ . so i think it should be possible to check if \\10.0.0.1 exists... /signed greetz, RìggníXBiTrAtE.tk Link to comment Share on other sites More sharing options...
RìggníX Posted March 4, 2007 Author Share Posted March 4, 2007 sry for double post, but i need to get a solution.... come on "pro's" /signed greetz, RìggníXBiTrAtE.tk Link to comment Share on other sites More sharing options...
Hasher Posted March 4, 2007 Share Posted March 4, 2007 Post # 2 is the solution ;-) You just need to learn how to use it Firefox's secret is the same as Jessica Simpson's: its effortless, glamorous style is the result of shhh extensions! Link to comment Share on other sites More sharing options...
RìggníX Posted March 4, 2007 Author Share Posted March 4, 2007 i tried it, but i've now idea how it could work... could you please help me?? greetz, RìggníXBiTrAtE.tk Link to comment Share on other sites More sharing options...
RìggníX Posted March 4, 2007 Author Share Posted March 4, 2007 it works... thx guys! greetz, RìggníXBiTrAtE.tk Link to comment Share on other sites More sharing options...
RìggníX Posted March 5, 2007 Author Share Posted March 5, 2007 it works if i "search" it by GetObj() , but if there are no shared files, it takes a long time to continue the script... so my program is very weak.... some1's got an idea to check it different?? /signed greetz, RìggníXBiTrAtE.tk Link to comment Share on other sites More sharing options...
ChrisL Posted March 5, 2007 Share Posted March 5, 2007 hmm... i don't no how i could use this.... (i'm a noob )but i think it should work with DirGetSize() somehow...in the help file there's an exaple with the path \\10.0.0.1\h$ . so i think it should be possible to check if \\10.0.0.1 exists.../signedThe example in the help file shows a complete path to a shared folder, in your example you are not specifying a final folder just a path to a computer, so there is no way dirgetsize is going to work.If you knew what the shared folder was then you could use this method but if you don't and you just want a list of shared folders whatever they may be then you need the example in the second post [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
RìggníX Posted March 7, 2007 Author Share Posted March 7, 2007 (edited) well, it works with objGet() ... but: it just works with the pc it's running on. if you try it with other pc's in the LAN, it will always return, that it's no object... so that's not the solution. Edited March 8, 2007 by RìggníX greetz, RìggníXBiTrAtE.tk Link to comment Share on other sites More sharing options...
RìggníX Posted March 8, 2007 Author Share Posted March 8, 2007 hmm.... now i tried it with the Auto3Lib func _NetShare_NetShareCheck() , but it also just works on the pc it's running on. i tried it on 3 different pc's with disabled firewall... what am i doing wrong??? greetz, RìggníXBiTrAtE.tk 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