Batch Files, Anyone?

  • 2
  • Question
  • Updated 4 years ago
Whenever I start the computer/radio, there are about a dozen things that I bring up.  Of course, SSDR, the utilities that monitor and provide control for my amp and tuner, FLDigi, etc.  Sometimes I may want to configure for CW and add CW Skimmer, other times not.

It seems the most efficient way to do this would be with a batch file, or different batch files, that could load SSDR and various apps.  Is anyone doing this now?  Would anyone care to share your files to give us some ideas of what can be done?  I realize that these are specific to the computer they're written for, but at least they're ideas.
Photo of Steve W6SDM

Steve W6SDM

  • 623 Posts
  • 281 Reply Likes

Posted 4 years ago

  • 2
Photo of Joe WD5Y

Joe WD5Y

  • 175 Posts
  • 24 Reply Likes
Steve,
I am doing this now, I bring up many programs along with ssdr. I do run into situations regarding syntax but work through it. With batch file implementation you can bring programs up in proper sequence which is good for ssdr operation because some programs need to see ssdr running first. I also have a stop batch file as well, makes fast exit. I also put batch file buttons in lower task bar so as not to have more main screen buttons. Also, chose buttons with start/stop notations, did this with shortcut implementation. I did this through a lot of trial and error. When I get chance I will try to post what I have working as I have files on another machine than ipad I am now on.

73's
Joe
WD5Y
Photo of pa0bie

pa0bie

  • 152 Posts
  • 20 Reply Likes

I have also made a batch file to start up my radio. Everyone can use it as an example. The blank lines are only to make it easyer to read. I have put it on the desktop as FLEX.BAT and maked it with notepad.   Succes.

Jan

pa0bie.


cd c:\
cd C:\Program Files\FlexRadio Systems\SmartSDR v1.3.8\SmartSDR CAT
start Cat.exe

cd c:\
cd C:\Program Files\FlexRadio Systems\SmartSDR v1.3.8
start SmartSDR.exe

cd c:\
cd C:\DDUtil_V3
start DDUtil_V3.exe

cd c:\
cd C:\Program Files\TeamSpeak 3 Client
start ts3client_win64.exe

cd c:\
cd C:\Users\Jan\Downloads\Smart S-meter
start SmartSmeter.exe

cd c:\
cd C:\Program Files (x86)\FRStack
start FRStack.exe




Photo of Joe WD5Y

Joe WD5Y

  • 175 Posts
  • 24 Reply Likes

Steve,

I am on a laptop that I have worked with some batch files so these examples are smaller than the ones on my sdr machine but good examples. I go to the files that I want to start/stop in a batch and click on properties, this will give you the path info for the batch. Note if you have a folder or file name with a "space" in it you will need to put quotes around it or you will not complete the path to the file, or error out. My examples show this; what I do if I have a new program to implement I make a new batch file to work the details out then copy/paste new line to my main batch file. Anyway here are the batch file lines for examples:

Start:

Start "c:\Users\Joe\Desktop" "C:\Program Files\Alpha Monitor\Alpha 8410-8406 Monitor.exe"

Start c:\Users\Joe\Desktop\"Smart S-meter.exe"

Start C:\"Program Files (x86)"\"RNA Software"\SDRMemory6K\SDRMemory6K.exe

Start C:\"Program Files (x86)"\FRStack\FRStack.exe

Stop:

taskkill -im "Alpha 8410-8406 Monitor.exe"

taskkill -im "Smart S-meter.exe"

taskkill -im "SDRMemory6K\SDRMemory6K.exe"

taskkill -im "FRStack.exe"


Be sure when saving batch file that you save in proper format as batch file. I also put both files start/stop in a folder labeled start/stop that I could move into another location so I could work from this as the shortcuts on my taskbar work from the folder; saves main screen room. I have a screen I would like to post showing the taskbar but have not figured how to post here. Hope this helps some. The examples do not show but SSDR should be first line in batch files; as I said this is another machine with examples to work from.


73's

Joe

WD5Y

Photo of Jon - KF2E

Jon - KF2E

  • 648 Posts
  • 195 Reply Likes
I use DXLab and it provides a way to start whatever you want automatically. Not to mention it is a great set of programs.

Jon...kf2e
Photo of Dale KB5VE

Dale KB5VE

  • 412 Posts
  • 56 Reply Likes
The batch joe has shown above are the ones he created for me and they are a life saver. I suggest you bring each program up and place it wher you want, then close the program with the exit or the "x". This will put where you want it in the windows memory. After you have done this , all your programs will open from the batch file in the place you want it. The woodbox meter is placed in the tool section and when you full screen the smartsdr it fits right in. Joe is a whiz on this and he has even taught this old man some trick!

I also am setting up dx lab have not got wine abler working but will. I have played with opening everything up with dx lab but I have found at times I do not need all the advantages of dx lab.
(Edited)
Photo of Steve W6SDM

Steve W6SDM

  • 623 Posts
  • 281 Reply Likes
Thanks, Joe and Dale, good info.  I have so many things going on when I reboot the system, it's nice to have a batch file loading everything for me - particularly those apps that need to be loaded in sequential order.

Correct me if I'm wrong, but I don't believe the "X" exit always works, particularly in Windows 7.  Not only does windows 7 not have memory to remember how icon and window placement was previously, some programmers hard code their app to start in the middle of the screen.  An example is the KPA Remote utility that Elecraft provides to control the amp.  No matter how I close this app down, control X, shift X, or just X, it starts smack dab in the middle of the main monitor.  FLDigi comes up on the main monitor in the upper left corner no matter what I do.

On XP, Windows remembers the last position.  Apparently this was a source of issues for the Microsoft team so it wasn't included in WIndows 7.

It would be nice to have everything come up where it's supposed to.
Photo of Joe WD5Y

Joe WD5Y

  • 175 Posts
  • 24 Reply Likes
So far everything I have used stays in location and sized but as dale said when you first bring the program up and locate/size change just close out with the "X" and all will be ok afterwards using the stop batch with the "task kill" command. Hope this helps.

73's
Joe
WD5Y