home bbs files messages ]

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 42,122 of 42,547   
   Thomas to All   
   Batch, run as administrator, UAC, Show m   
   28 Jan 23 19:03:31   
   
   XPost: alt.comp.os.windows-10   
   From: canope234@gmail.com   
      
   Due to the strange ways that Windows works, all I want is to permanently   
   have the "Show more details" working whenever I "Run as administrator" any   
   given "*.bat" file that I select, en masse, to run.   
      
   Is there an option checkbox in the registry perhaps to always "Show more   
   details" when running a batch file as administrator in Windows 10?   
      
   A confluence of Windows peculiar traits is only why I need that option.   
   That is, I don't "want" that option - I just want it as a workaround.   
      
   [1] Windows, when I select a handful of files to right click and execute,   
       I can never tell the _order_ that those files will be executed   
       (as Windows has its own peculiarities on how it orders files).   
      
   [2] The batch file has to have administrator permission because it changes   
       the routing table but a Windows particular is that there isn't any   
       known way to set that user _inside_ the batch file itself, such as:   
          RunThisBatchFileAsAdministrator = YES   
      
   [3] Not every batch file will work (as they're running network commands)   
       but _one_ of those batch files will always end up working. Therefore   
       the problem is figuring out, after the fact, which batch file it was.   
      
   All of these issues are caused purely by Windows particular quirks which is   
   why I want to have "Show more details" on by default.   
      
   But what would negate the need for that would be a command that I could put   
   _inside_ the batch file that says "RunMeAsAdminPlease = YES" if that   
   exists.   
      
   Or, some way to make _all_ batch files run as Administrator, although that   
   has the obvious security risk so I just want to have the command inside if   
   I can.   
      
   But if there is no command that tells Windows to run the batch file as   
   administrator, then at least tell me which of the many batch files it was.   
      
   --- 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