Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,962 of 42,547    |
|    Robin Goodfellow to All    |
|    red admin cmd windows taskbar running pr    |
|    05 Sep 21 15:39:09    |
   
   XPost: alt.comp.os.windows-10   
   From: Ancient-of-Days@Heaven.Net   
      
   How can we colorize any given running-task icon in the taskbar?   
      
   I open command windows with the "Run" command (not from a shortcut!).   
   I don't make shortcuts for something that is only three letters. :)   
      
   Some of those are admin windows, but most are user windows.   
   Each shows up as a "running task" in the taskbar.   
      
   But they all look the same in the running tasks icons in the taskbar.   
      
   Currently I open a red admin command window using the cmda.bat script   
   (which is appended to the sig below, and which works beautifully).   
      
   But the icon for that red admin command window is indistinguishable from any   
   other icon in the taskbar for running programs.   
      
   How can I change the color of the cmda.bat running icon in the taskbar?   
   --   
    @ECHO OFF   
      
    REM This is a standalone cmda.bat program   
    REM It opens a very visible RED command window   
    REM Open a new shell "Run As Administrator" (cmda.bat)   
    REM Type "cmda" in a Run window (instead of "cmd")   
    REM Based on script by foxidrive on alt.msdos.batch   
      
    SETLOCAL ENABLEEXTENSIONS   
      
    IF NOT "%~1"=="" goto :START   
      
    SET LogFile=%TEMP%\cmda.vbs"   
    Echo Set UAC = CreateObject("Shell.Application") >"%LogFile%"   
    Echo UAC.ShellExecute "%~f0", "%cd%", "", "runas", 1 >>"%LogFile%"   
    Start "" /MIN "%LogFile%"   
    goto :EOF   
      
    :START   
    Cmd /k "CD /D "%*" & Echo Administrator: & color 4F"   
    :EOF   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca