Recently Browsing 0 members
No registered users viewing this page.
Trying to open windows explorer to a WebDav location and it's not working quite how I want, on the computers it is setup as a "network location" (as opposed to a "mapped drive", and this unfortunately can't be changed), the "Data" WebDav folder sits directly under "This PC" if that's an easier way to get to it. any suggestions as to what I can correct to get the 2nd example to work?
; This works, but I'm trying to avoid this as users normally see the URL style in the 2nd example below $folderToOpen = "\\mycompany.sharepoint.com@SSL\DavWWWRoot\Data" Run("Explorer.exe " & $folderToOpen) ; This does not work, it tries to open the WebDav url in the default web browser $folderToOpen = "https://mycompany.sharepoint.com/Data" Run("Explorer.exe " & $folderToOpen) ShellExecute also opens it in the default browser.
Saw _WinAPI_ShellOpenFolderAndSelectItems but couldn't get the 2nd example to work.
If I manually open Windows Explorer and paste in https://mycompany.sharepoint.com/Data it loads the WebDav directory without issue.
If I have to use the pathing from the first example it is fine, just trying to give users a familiar experience.
I want to write a script to toggle the opening and closing of a pdf file.
For example if i have a flie called myFile.pdf I want the script to open/load it. However if myFile.pdf is open then i want the same script to close it.
Could someone please tell me how I can know if the pdf file is open/loaded?
I'm having a trouble with TCPAccept() on compiled scripts.
This script I made to test:
#include <Debug.au3> _DebugSetup() TCPStartup() $Main = TCPListen("0.0.0.0", 8081) _DebugOut("TCPListen output: " & $Main) While True $ac = TCPAccept($Main) _DebugOut("TCPAccept return: " & $ac) If $ac <> -1 Then _DebugOut("There's someone out here!") TCPSend($ac, "hi") EndIf WEnd Works fine if I run it by pressing F5 on SciTe window.
But if I compile it and then execute the executable file, it does not work. Instead, NetCat tells me that the connection timed out (I've tested other clients as well):
I've checked if the port is really opened, if I really can open it, if there is other software using that port, but everything showed that it should connect.
Btw, netstat -an shows that the port is really listening (when I execute my file). It listens, but does not accept.
I use no antivirus software (I use this Windows installation for coding only) and Windows Firewall is disabled. I've tried, anyway, allowing my exe file on Firewall rules, but it also did not work. Running as administrator also did not help.
I believe it's a Windows (Firewall?) bug rather than an AutoIt bug. How can I manage to solve this?
Thanks in advance.
I cannot find any concrete info on this.
What is and is not valid in a windows (vista+) hosts file?
0.0.0.0 http://www.domain.com (I know for example that http:// is not valid)
0,0,0,0 www.domain.com 0.0.0.0 sub.domain.com 0.0.0.0 sub.sub.domain.com 0.0.0.0 domain_name.com 0.0.0.0 domain-mane.com 0.0.0.0 1domain.com 0.0.0.0 _domain.co 0.0.0.0 2