Klowinns Posted November 18, 2005 Posted November 18, 2005 I've created the following .bat file. 1) I would like these programs once executed to minimize.2) I would like to add a line that would execute a program within a folder. ie opera\opera.exeHere is what I have:@echo offstart ypops.exestart PortableThunderbird.exeexitYour help would be appreciated. Thanks
Zxian Posted November 18, 2005 Posted November 18, 2005 This should be in the programming section - not General Discussion... As for your question, try running start /? in the command line to see if you get your answer.
gunsmokingman Posted November 18, 2005 Posted November 18, 2005 Here is a Vbs script that uses CMD Promt to start notepad.exe and start the CMD session in a min stateI have added all the state for stating things as a constant for the VBS script that can be used.This color text is the constant used by the vbs fileConst Hidden = 0, Normal = 1, Min = 2, Max =3, Recent = 4, Current_Size = 5,Min_ActiveSame = 7,Defualt_Call_State_ByApp =10Dim ActSet Act = CreateObject("Wscript.Shell")Act.Run("%Comspec% /C Echo Off && Mode 55,5 && Color F3 && Title Test CMD Min" _& "&& start /Min Notepad.exe && Echo. && Echo This Is A Test && Pause"),Min_ActiveSame,True
Klowinns Posted November 21, 2005 Author Posted November 21, 2005 Here is a Vbs script that uses CMD Promt to start notepad.exe and start the CMD session in a min stateI have added all the state for stating things as a constant for the VBS script that can be used.This color text is the constant used by the vbs fileConst Hidden = 0, Normal = 1, Min = 2, Max =3, Recent = 4, Current_Size = 5,Min_ActiveSame = 7,Defualt_Call_State_ByApp =10Dim ActSet Act = CreateObject("Wscript.Shell")Act.Run("%Comspec% /C Echo Off && Mode 55,5 && Color F3 && Title Test CMD Min" _& "&& start /Min Notepad.exe && Echo. && Echo This Is A Test && Pause"),Min_ActiveSame,TrueThank you for your reply.
OrcoXP Posted November 21, 2005 Posted November 21, 2005 Might wanna check your spellingDefualt_Call_State_ByApp =10
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now