Jump to content

DirGetSize on remote computer


Recommended Posts

Hi

i have a code that works for local Folders on my computer.

How can i change code so that i can DirGetSize of a specific folder on remote Computer ?

This code works on local machine:

$CPname = 'London'

MsgBox(0,"Size of Temp Folder", "CP Name: " & $CPname &@CRLF & "Size of Temp Folder: " & Round(DirGetSize("C:\temp")/1048576,2) & "MB")

The Code could be like

MsgBox(0,"Size of Temp Folder", "CP Name: " & $CPname &@CRLF & "Size of Temp Folder: " & Round(DirGetSize("\\$CPname\C$\temp")/1048576,2) & "MB")

Thanks for sugestions.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...