Announcement

Collapse
No announcement yet.

Delete file on remote computer?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Delete file on remote computer?

    Is there an easy way to see if a file exists on a remote computer and then delete it using vb.net script?
    Bryan
    Software/Hardware: Win10 Pro, HS 3 Pro, HS Touch, Echo, Edgeport/4, Z-Net w/88 Devices, Insteon PLM w/19 Devices, Nest, GC-100-6, W800RF32A, WS-2080 Weather Station (KMADRACU10)
    Plug-in/Scripts: Alexa API, BLBackup, BLGData, BLLED, BLLock, BLRF, BLTVGuide, Blue Iris, BLUPS, Current Cost 3P, DirectTV, FitbitSeer, Insteon, Nest, Pushover 3P, Random, Restart, Tasker, UltraGCIR3, UltraWeatherWU, Z-Wave

    #2
    If the remote computer directory is shared, you can use System.IO.File.Exists and System.IO.File.Delete


    If the remote computer directory is not shared, you can use the Script Connector plugin to run the script on the remote computer, which would then delete a local file.
    --
    stipus

    Comment


      #3
      Thank you, that's just what I needed!
      Bryan
      Software/Hardware: Win10 Pro, HS 3 Pro, HS Touch, Echo, Edgeport/4, Z-Net w/88 Devices, Insteon PLM w/19 Devices, Nest, GC-100-6, W800RF32A, WS-2080 Weather Station (KMADRACU10)
      Plug-in/Scripts: Alexa API, BLBackup, BLGData, BLLED, BLLock, BLRF, BLTVGuide, Blue Iris, BLUPS, Current Cost 3P, DirectTV, FitbitSeer, Insteon, Nest, Pushover 3P, Random, Restart, Tasker, UltraGCIR3, UltraWeatherWU, Z-Wave

      Comment

      Working...
      X