Embedded Systems Conference
Breaking News
Comments
Newest First | Oldest First | Threaded View
<<   <   Page 4 / 4
Max The Magnificent
User Rank
Author
Re: Batch files
Max The Magnificent   6/4/2014 9:17:35 AM
NO RATINGS
@MeasurementBlues: You could simply create some shortcuts to open the files and programs you want or copy the paths from the shortcuts and paste them into a batch file.

But that would just open the files -- not place everything where I want stuff on the screens (sad face) -- on the other hand I agree it would be a step along the way -- but I'm going to try the script stuff recommendd in an earlier comment as soon as I get a free moment.

MeasurementBlues
User Rank
Author
Batch files
MeasurementBlues   6/3/2014 11:12:13 PM
NO RATINGS
@Max

I automate certain tasks such as doing quick backups by writing batch files. use a text editor and save the file with a .bat extention. For example

You could simply create some shortcuts to open the files and programs you want or copy the paths from the shortcuts and paste them into a batch file. For example


"C:\Users\mrowe\Documents\EE Times\My excel file.xlsx"

then add the next shortcut to the next thing you want to open.

You could put the batch file on your desktop or amke a shortcut to the batch file. OK you do have to open the batch file once booted, but it save hunting around for everything.

betajet
User Rank
Author
Creature of habit -- to a degree
betajet   6/3/2014 3:02:56 PM
NO RATINGS
I'm a creature of habit -- to a degree.  However, I've never habituated myself to any particular GUI desktop, so I'm pretty good at switching between various versions of Windows (I like 2000, dislike NT, loathe Vista, dislike 7, won't touch 8), Macintosh, and Linux desktops.  Maybe when I have the inclination to write my own desktop I'll have something worth forming a habit around :-)

Now individual programs and programming languages are another story.  I'm definitely a creature of habit there.

[Subject line and first line refer to a stanza of Bob Dylan's "I shall be free #10".]

Max The Magnificent
User Rank
Author
Re: Windows Script Host + Run and Place Utility
Max The Magnificent   6/3/2014 1:51:32 PM
NO RATINGS
@jakmal: Your requirements can be achieved through a script executed through Windows-based Script Host (you can use VBScript or JavaScript) and an additional utility called as 'Run and Place'...

You are my hero!

Max The Magnificent
User Rank
Author
Re: Windows Script Host + Run and Place Utility
Max The Magnificent   6/3/2014 1:50:35 PM
NO RATINGS
@jakmal: If you want, I can pass on a link to rap.exe. I downloaded it around 6 years back and my source seems to have disappeared (a cursory Google search doesn't lead me to the link now).

So long as rap.exe was a free utility that anyoner coudl download and run, then that woudl be wonderful. How big is it? Would it be possible to ZIP it up and email it to me at max@CliveMaxfield.com

jakmal
User Rank
Author
Windows Script Host + Run and Place Utility
jakmal   6/3/2014 1:14:16 PM
NO RATINGS
Max,


Your requirements can be achieved through a script executed through Windows-based Script Host (you can use VBScript or JavaScript) and an additional utility called as 'Run and Place'. I personally have a setup similar to yours to create this sort of workspace:



The difference is that mine is a single monitor, while yours is made of 3 (but, I guess the principle remains the same if you can address any particular location using a pixel co-ordinate).

My js script for the above pic is as below. I just double click this file (or, right click and Open With -> Microsoft Windows-based Script Host) and the programs automatically start in the required locations. (The 'Run and Place' utility rap.exe is in the same path as cluer.exe in the paths mentioned below)

[code]

oShell = WScript.CreateObject("WScript.Shell") ;
oShell.CurrentDirectory = "G:\\Crosswords";
oShell.Run("gvim \"D:\\Dropbox\\Crosswords\\Neyartha\\Database.txt\"" ) ;
oShell.Run("\"G:\\Portables\\LibreOfficePortable\\LibreOfficeCalcPortable.exe\" \"D:\\Dropbox\\Crosswords\\Neyartha\\CrosswordClueTypes.xls\"" ) ;
oShell.CurrentDirectory = "C:\\Program\ Files\ (x86)\\Crossword\ Man\\Wordplay\ Wizard\ 1.1";
oShell.Run("wordplay.exe") ;
oShell.CurrentDirectory = "C:\\Program\ Files\ (x86)\\WordWeb";
oShell.Run("wwnotray.exe");
oShell.CurrentDirectory = "G:\\Portables\\SQLiteSpy";
oShell.Run("SQLiteSpy.exe \"D:\\Dropbox\\Crosswords\\Database\\CompilersHelp.sqlite\"");
oShell.CurrentDirectory = "C:\\Program\ Files\ (x86)\\Clue\ database";
oShell.Run("rap.exe /x=530 /y=610 /w=500 /h=560 cluer.exe");

[/code]

If you want, I can pass on a link to rap.exe. I downloaded it around 6 years back and my source seems to have disappeared (a cursory Google search doesn't lead me to the link now).

 

<<   <   Page 4 / 4


Radio
NEXT UPCOMING BROADCAST
In conjunction with unveiling of EE Times’ Silicon 60 list, journalist & Silicon 60 researcher Peter Clarke hosts a conversation on startups in the electronics industry. One of Silicon Valley's great contributions to the world has been the demonstration of how the application of entrepreneurship and venture capital to electronics and semiconductor hardware can create wealth with developments in semiconductors, displays, design automation, MEMS and across the breadth of hardware developments. But in recent years concerns have been raised that traditional venture capital has turned its back on hardware-related startups in favor of software and Internet applications and services. Panelists from incubators join Peter Clarke in debate.
Flash Poll
Top Comments of the Week
Like Us on Facebook

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Special Video Section
Chwan-Jye Foo (C.J Foo), product marketing manager for ...
The LT®3752/LT3752-1 are current mode PWM controllers ...
LED lighting is an important feature in today’s and future ...
Active balancing of series connected battery stacks exists ...
After a four-year absence, Infineon returns to Mobile World ...
A laptop’s 65-watt adapter can be made 6 times smaller and ...
An industry network should have device and data security at ...
The LTC2975 is a four-channel PMBus Power System Manager ...
In this video, a new high speed CMOS output comparator ...
The LT8640 is a 42V, 5A synchronous step-down regulator ...
The LTC2000 high-speed DAC has low noise and excellent ...
How do you protect the load and ensure output continues to ...
General-purpose DACs have applications in instrumentation, ...
Linear Technology demonstrates its latest measurement ...
10:29
Demos from Maxim Integrated at Electronica 2014 show ...
Bosch CEO Stefan Finkbeiner shows off latest combo and ...
STMicroelectronics demoed this simple gesture control ...
Keysight shows you what signals lurk in real-time at 510MHz ...
TE Connectivity's clear-plastic, full-size model car shows ...
Why culture makes Linear Tech a winner.