New to writing .bat files

Mre911

New member
Local time
12:13 PM
Messages
4
I am trying out a few things with a .bat file, and I seem to be running into some issues. The . bat file that I am creating is going to be made to execute 2 files. That part I have down. The issue that I am having is that one of the programs that the .bat file executes defaults to the notification tray area upon opening, and I would like to make it open to the desktop only when running my .bat file. Is there a command to automatically open a program to the desktop? I tried WinSet, Top, but had no luck. I may also want to add in a progress bar eventually to see what % the program has run, so any tips on that would be appreciated as well.
 

My Computer My Computer

At a glance

7
Computer type
PC/Desktop
OS
7

My Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1AMD Phenom 2 1090T2x8GB Kingston HyperX Fury Black 1600Mhz Unga...MSI GTX 970 Gaming 4G
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
What is the program? Nothing you can do from a batch file unless the program has the capability, like a parameter it accepts when starting.
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
No luck, couldn't get it to open in windowed mode. It would just open in the icon tray. even with the -window switch
 

My Computer My Computer

At a glance

7
Computer type
PC/Desktop
OS
7
it is called radtray.exe and it's meant to open in a tray, but when it is double clicked from the icon tray, it does open a gui.
 

My Computer My Computer

At a glance

7
Computer type
PC/Desktop
OS
7
All I can find on that is this: radtray.exe is Radia Application Manager from Hewlett-Packard

Can't find any info on how to use it or if it has options for starting.
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Yeah by default it will open from the tray which is what I would like it to do, only when my batch file runs would I like it to be brought to front. A progress bar may be an option as a substitute.
 

My Computer My Computer

At a glance

7
Computer type
PC/Desktop
OS
7
What is the program? Nothing you can do from a batch file unless the program has the capability, like a parameter it accepts when starting.
This is correct, the program must have the capability, it must have the needed switches. Batch files cannot directly communicate with applications, so its impossible, Mre, for you have a progress indicator on the batch's Cmd window.


The Start command has a switch, /max, that will maximise some application's windows, depending on whether the application has that capability.

E.g.
Code:
[COLOR="Gray"]C:\Windows\system32>[/COLOR][COLOR="Black"]start /max "" "C:\PathTo\radtray.exe"[/COLOR]
 

My Computer My Computer

At a glance

Windows 10, Windows 8.1 Pro, Windows 7 Profes...
Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Back
Top