Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: New to writing .bat files

30 May 2015   #1
Mre911

 
 
New to writing .bat files

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 System SpecsSystem Spec
.
30 May 2015   #2
GokAy

Windows 7 Ultimate x64 SP1
 
 

I am no good with this stuff, tried this switch? -window

Found it here Running a Program in Windowed Mode (Windows 7) | Matt Groeber's Blog
My System SpecsSystem Spec
30 May 2015   #3
Ztruker

Windows 10 Pro X64
 
 

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 System SpecsSystem Spec
.

30 May 2015   #4
Mre911

 
 

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 System SpecsSystem Spec
30 May 2015   #5
Mre911

 
 

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 System SpecsSystem Spec
30 May 2015   #6
Ztruker

Windows 10 Pro X64
 
 

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 System SpecsSystem Spec
30 May 2015   #7
Mre911

 
 

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 System SpecsSystem Spec
30 May 2015   #8
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by Ztruker View Post
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:
C:\Windows\system32>start /max "" "C:\PathTo\radtray.exe"
My System SpecsSystem Spec
Reply

 New to writing .bat files




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows 7 is over-writing files that have a different file name
I have a problem when saving files in Windows 7. say I have a png with the name "alduin & khajiit 1.png" and I highlight it to grab the file name but I change the "1" to a "2" for a file name "alduin & Khajiit 2.png" in the file name field, Windows 7 still asks if I want to overwrite it despite the...
General Discussion
writing batch files in windows 7
Greetings the following simple one line batch file used to run in Windows XP fsort.bat sort %1 /o %~ns.%~x fsort list.txt would sort the text file list.txt and put the result in lists.txt now it doesn't run. it seems that windows 7 doesn't handle parameters like %~n and %~x What do I do...
General Discussion
Cant install because Error writing files?
Hello, first i'm sorry because my english is ad. i had tried to install a software (Quicktime) but while it installing, Windows running so slow, aslo the Quicktime installer too. Then i have a error message of Quicktime installer : Error writing to file : C:\Program Files\Common...
Software
Win 7 not writing Minidump files
Hi ppl, As in tittle, I have small memory dump filea enabled in startup/Recovery I have checked the regisrty and writing files is enabled and being sent to C:/Windows/Minidump Page file ia enabled But windows still will not Write minidump files
General Discussion
Best Program for Writing Help Files?
Hi, I have been asked to design help files for someone for their program that they are developing. I have been using HTML Help Workshop, but it seems to be badly designed/too complicated to use. What program should I use to create these help files? It should be a free program. Thanks! :geek:
Software
How to stop an app from writing to one of it's files
Hi. :) I have an .xml that is associated with an app. Everytime I shut down the app. that .xml file is written to, which I am trying to avoid, because it is changing some values I want to keep. I have made the file "read only", but that doesn't help; the app automatically switches off the "read...
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App