Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 21-07-2011
Member
 
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.
Reply With Quote
  #2  
Old 21-07-2011
Member
 
Join Date: Dec 2007
Posts: 2,273
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Execute GUI commands from the command line"
Thread Thread Starter Forum Replies Last Post
xcopy command line together with wmplayer command line Aislinn Operating Systems 5 31-03-2010 12:13 PM
How to execute commands of batch file at timed intervals Camryn Software Development 5 27-03-2010 08:47 PM
Problem: Command Line Option Syntax Error. Type Command /? For Help Nadeem MediaCenter 3 03-09-2009 05:41 PM
autorun.inf - shell\..\command with command line parameter doesn'twork kakii Windows XP Support 1 18-05-2007 01:24 AM
eject tape using command-line backup commands and scheduled tasks KEATON! Small Business Server 1 16-05-2007 07:33 PM


All times are GMT +5.5. The time now is 12:51 AM.