當我運行下面的代碼,我得到一個錯誤,請幫我正常運行的代碼:)AutoIt腳本「找不到文件」的錯誤
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$sFile = _DownloadFile('https://cdn.pixabay.com/photo/2013/06/25/22/09/rose-141314_960_720.jpg')
shellExecute($sFile)
Func _DownloadFile($sURL)
Local $hDownload, $sFile
$sFile = StringRegExpReplace($sURL, "^.*/", "")
$sDirectory = @TempDir & $sFile
$hDownload = InetGet($sURL, $sDirectory, 17, 1)
InetClose($hDownload)
Return $sDirectory
EndFunc; == >_GetURLImage
W7上會發生什麼? – Bookeater
這是臨時目錄:))) –