home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,623 of 68,980   
   Zaidy036 to Peter   
   Re: Always Run as Administrator   
   10 Aug 20 20:21:33   
   
   From: Zaidy036@air.isp.spam   
      
   On 8/10/2020 4:55 PM, Peter wrote:   
   > That's what I was thinking but was wondering if there's any other way.  For   
   example, if I were to use the Call command in batch file #1 to start batch   
   file #2, is there any way to get the Call command to make batch file #2 to run   
   as an administrator?     
   Or something along those lines?   
   >   
   Another method is to define a Task Scheduler job with "highest   
   privileges" and "can run manually" to run the batch you want and then   
   run the TS job using SCHTASKS.EXE /RUN /TN "task name" in another batch.   
      
   --- 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