powershell v2 : WebClient/UploadString never connect
问题 with powershell v2 and pushbullet, I try to send push notification when a file in modified $folder = 'c:\path\to\file' $filter = '*.*' $user = "pushbullet_token" $url = "https://api.pushbullet.com/v2/pushes" $fsw = New-Object IO.FileSystemWatcher $folder, $filter $fsw.IncludeSubdirectories = $true $fsw.NotifyFilter = [IO.NotifyFilters]'FileName, LastWrite' $onCreated = Register-ObjectEvent $fsw Created -SourceIdentifier FileCreated -Action { $name = $Event.SourceEventArgs.Name $path = $Event