Suggested implementation is just what I need

. but I have a problem when I try with some folders in the permissions.
In this event, it works correctly for me.
./check_nrpe -H 192.168.30.99 -c check_foldersize -a "c:\program files\nsclient++" 50 78
WARNING:120,7 MB
But when I try on another carp of unit D, I do not fucniona.
./check_nrpe -H 192.168.30.99 -c check_foldersize -a "c:\program files" 50 78
d:\FGA\check_folder_size.vbs(31, 3) Error de Microsoft VBScript en tiempo de ejecuci▒n: Permiso denegado
I share NRPE configuration file.
# If you want to fill this file with all available options run the following command:
# nscp settings --generate --add-defaults --load-all
# If you want to activate a module and bring in all its options use:
# nscp settings --activate-module <MODULE NAME> --add-defaults
# For details run: nscp settings --help
; in flight - TODO
[/settings/default]
; Undocumented key
password =
; Undocumented key
allowed hosts = X.X.X.X/32
; in flight - TODO
[/settings/NRPE/server]
;use ssl = false
performance data = true
allow arguments = true
allow nasty characters = true
;port = 5666
; Undocumented key
verify mode = none
; Undocumented key
insecure = true
[/settings/external scripts]
allow arguments = true
allow nasty characters = true
[/settings/external scripts/scripts]
; my script
;check_foldersize = cscript.exe //T:30 //NoLogo scripts\check_folder_size.vbs d:\FGA 50 78
;check_folder_size = cscript.exe //T:30 //NoLogo scripts\\check_folder_size.vbs "$ARG1$" "$ARG2$" "$ARG3$"
;Funciona
;check_foldersize=C:\windows\System32\cscript.exe //NoLogo //T:30 "c:\program files\nsclient++\scripts\check_folder_size.vbs" "$ARG1$" 50 78
check_foldersize=C:\windows\System32\cscript.exe //NoLogo //T:30 "C:\Program Files\NSClient++\scripts\check_folder_size.vbs" "$ARG1$" "$ARG2$" "$ARG3$"
[/settings/external scripts/alias]
;check_folder_size.vbs=check_foldersize
; in flight - TODO
[/modules]
; Undocumented key
CheckExternalScripts = enabled
; Undocumented key
CheckHelpers = enabled
; Undocumented key
CheckEventLog = enabled
; Undocumented key
CheckNSCP = enabled
; Undocumented key
CheckDisk = enabled
; Undocumented key
CheckSystem = enabled
; Undocumented key
NSClientServer = enabled
; Undocumented key
NRPEServer = enabled
What I need so that you can monitor the folders of Unit D: \