Get Disk Space

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8757
    SCT
    Participant

    In ‘job queue’ > ‘actions’ there’s the option ‘Get C: disk space’

    How can i do this for D: or other Volumes? I need it in the job queue.

    How can i see the code behind an action in job queue?

    #9976
    doug
    Moderator

    The job queue only has a built-in option for C. If you wanted to get information about other disks/volumes, you would need to create a custom remote command (logged output). Once you have created/saved the command in BatchPatch it will appear in the list of available items in the job queue. You could use commands like these:

    WMIC PATH Win32_LogicalDisk where “drivetype=3” GET deviceid, volumename, freespace, size

    WMIC PATH Win32_LogicalDisk where “deviceid=’E:'” GET deviceid, volumename, freespace, size

    You can’t see the code behind actions in the job queue. You can, however, see various sample remote commands syntax under ‘Actions > Execute remote process/command > Create/modify’. The bottom part of that window has a list of various types of commands that you can use or modify for your own needs. You can also see a similar list here:

    how-to-hard-code-your-own-custom-commands-in-the-batchpatch-actions-menu

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.