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 41,827 of 42,547   
   JJ to Anthony R. Gold   
   Re: Starting OneDrive   
   18 Apr 20 01:50:00   
   
   From: jj4public@vfemail.net   
      
   On Thu, 16 Apr 2020 20:35:11 -0400, Anthony R. Gold wrote:   
      
   > On Thu, 16 Apr 2020 20:29:58 -0400, "Anthony R. Gold"   
   >  wrote:   
   >   
   >> I'd like to make a batch file to restart OneDrive. This is my attempt:   
   >>   
   >> Taskkill /IM OneDrive.exe /F   
   >> timeout 10   
   >> C:\Program Files (x86)\Microsoft OneDrive\OneDrive.exe   
   >>   
   >> The first two lines execute fine but then the last give this error:   
   >>   
   >> 	OneDrive can't be run using full administrator rights   
   >>   
   >> 	Please restart OneDrive without administrator rights   
   >>   
   >> Any pointers will be helpful.   
   >   
   > Sorry - my mistake. The latest version of the failing batch is now:   
   >   
   >   Taskkill /IM OneDrive.exe /F   
   >   timeout 10   
   >   START /d "C:\Program Files (x86)\Microsoft OneDrive" OneDrive.exe   
   /background"   
      
   The /D must follow the starting directory of the program, so you'll need to   
   execute START as:   
      
     start /d {directory path} {file path [program options]}   
      
   Check the START command line usage. Type: start /?   
      
   --- 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