Announcement

Collapse
No announcement yet.

Macro Question

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

  • Macro Question

    Hi there, I was wondering if Hyena can run a macro on the network that will check for directories eg : "c:\program files\napster" if so it needs to report to a txt file with the computer number, can this be done?

  • #2
    Re: Macro Question

    We do something quite similar to identify the date time stamp on a particular file.
    Make sure all of the computers that you want to report on are highlighted in the right hand side (CTRL-A).
    Select the MACRO button.

    MACRO COMMAND STRING = "dir \\%C1%\c$\folder\*.ver >>d:\filename.txt"
    OUTPUT FILE NAME = "d:\batchfile.bat"

    The %C1% entry refers to the column of the right hand side that contains "computer name".

    This creates a batch file containing the above command for all of the highlighted stations and creates an output file when it runs.

    All you need to do is to identify the DOS command that you need. I think "dir napster /ad" would work.

    I think this should work

    Comment


    • #3
      Re: Macro Question

      Thanks very much for your reply, this helped a lot to understand how Hyena generates macros, you have been a real life saver!
      Thanks again

      <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body">Originally posted by Awhitton:
      <span style="font-weight: bold">We do something quite similar to identify the date time stamp on a particular file.
      Make sure all of the computers that you want to report on are highlighted in the right hand side (CTRL-A).
      Select the MACRO button.

      MACRO COMMAND STRING = "dir \\%C1%\c$\folder\*.ver >>d:\filename.txt"
      OUTPUT FILE NAME = "d:\batchfile.bat"

      The %C1% entry refers to the column of the right hand side that contains "computer name".

      This creates a batch file containing the above command for all of the highlighted stations and creates an output file when it runs.

      All you need to do is to identify the DOS command that you need. I think "dir napster /ad" would work.

      I think this should work</span></div></div>

      Comment

      Working...
      X