Sign in to follow this  
Followers 0
kneze

DirGetSize on remote computer

2 posts in this topic

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0