tags:

views:

103

answers:

3

Hello, is there a way to change the cmd title? I wrote a vbs program. But the dos title is bad.

The name ist c:\windows\system32\cscript.exe I try it with:

title the_name and title ="name"

But both doesn't works.

Thanks for help.

A: 

Do you need to change it in the code or do you just want it to look a little nicer? You could possibly do it by creating a shortcut to your script and then changing the name of the shortcut (in the properties of the shortcut, change to the General tab and change the name there).

ho1
problem is, i will open my script more than one time and everytime there is c:\windows\system32\cscript.exe ...than i have 5 windows open and than i don't now what window is right one that i can close...i hope you understand me...sry for my english^^
matthias
@matthias: Don't know then I'm afraid.
ho1
ok thanks. Maybe some one can help me :-)
matthias
+3  A: 

Unfortunately you cannot do that from within the script using any of the WSH objects.

The only way to do it is to launch the script via an intermediary (a .bat using the TITLE command or another script using a %comspec% argument).

Alex K.
A: 

Did you fins a solution. I am also using one master script to start a number of child scripts and would like to rename the title bars on each.

DavidB