topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 2:07 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: batch file question re cmd + color  (Read 8862 times)

222fbj

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 53
    • View Profile
    • Donate to Member
batch file question re cmd + color
« on: April 15, 2008, 08:31 AM »
For anyone still using batch files...
I customized the colors/font of my cmd window (on XP) by clicking the titlebar and changing Properties>Colors.
When I use my right click menu to 'open command prompt here" I get the colors I want.
I also have a batch file that opens a window with cmd /k but the colors default to black/white.
I read the color /? and cmd /? entries but did not figure out the solution - what "cmd" do I use in my batch file to open a window with the same colors/font as I get with "open command prompt here"?

thanks

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: batch file question re cmd + color
« Reply #1 on: April 15, 2008, 09:26 AM »
From your batch file try

cmd /T:30

(from a command prompt see color /?)

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: batch file question re cmd + color
« Reply #2 on: April 15, 2008, 01:08 PM »
Thank you mates  :Thmbsup:

I just want look out for this feature this day (for my new "RunAsAdmin.cmd")

"RunAsAdmin.cmd"
@Echo off && Title Launch console as ADMIN && COLOR 1F
RUNAS /USER:Administrator "cmd /T:4F /K TITLE ADMIN RIGHTS" && "/K /F:ON /E:ON"


« Last Edit: April 15, 2008, 01:41 PM by AbteriX »