Results 1 to 2 of 2

Thread: Execute GUI commands from the command line

  1. #1
    Join Date
    Jul 2011
    Posts
    1

    Execute GUI commands from the command line

    Greetings!

    I have a rather simply query to put forward, how would I go about exectuing GUI commands from the command line?

    You see, I must collect all the S/N of our Windows 7 installations to ensure that we are complying with our site license agreement. We have, however, several computers to check and I would like to automate this process. So far, I have found KeyFinder, which will auto-magically find the S/N and then you can save that output to a text file. This process still forces us to check each computer individually, though, and I thought that a batch script might help automate the process.

    So far I can run the program, but have no way of accessing the GUI menu in order to save the file:
    Code:
    @echo off
    START "Key Finder" /Dpath\to\network\drive "keyfinder-2.0.1.exe"
    Which, as you may know, merely starts the program. How then, can I add into my batch script the functionality to save the output? Better yet, have you found a quicker way to automatically grab the S/N of your Windows installations?

    Thank you all kindly for your time, and eagerly await your responses.

  2. #2
    Join Date
    Dec 2007
    Posts
    2,288

    Re: Execute GUI commands from the command line

    You can look at Exec library form the Apache Commons project. Also check the below example given like javac Filename.java from java gui :

    java.lang.ProcessBuilder

    java.lang.Runtime.exec(...)

    Or you can also download the “Script Executor” GUI and command prompt tool for multiple scripts execution.

Similar Threads

  1. xcopy command line together with wmplayer command line
    By Aislinn in forum Operating Systems
    Replies: 5
    Last Post: 31-03-2010, 12:13 PM
  2. How to execute commands of batch file at timed intervals
    By Camryn in forum Software Development
    Replies: 5
    Last Post: 27-03-2010, 08:47 PM
  3. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  4. Replies: 1
    Last Post: 18-05-2007, 01:24 AM
  5. eject tape using command-line backup commands and scheduled tasks
    By KEATON! in forum Small Business Server
    Replies: 1
    Last Post: 16-05-2007, 07:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,145,127.01259 seconds with 16 queries