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,888 of 42,547   
   Arlen Holder to All   
   Win+R batch command to create a system r   
   07 Sep 20 21:28:14   
   
   XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows   
   From: arlen_holder@newmachines.com   
      
   Due to BSOD issues often cannibalizing the Windows 10 boot, I am creating   
   frequent restore points but I would like to script the restore point   
   creation with a batch command from the Win+R "Run" command box.   
      
   What am I doing wrong?   
      
   1. I can manually create a restore point any time I want to:   
      Win+R > sysdm.cpl > [System Protection][Create]   
      (This takes a minute to run to completion.)   
      
   2. When I look, that restore point is always created.   
       Win+R > sysdm.cpl > [System Protection][System Restore]   
       (_)Recommended restore   
       (o)Choose a different restore point   
       [Next] [x]Show more restore points   
       (I see all the many restore points that I manually created.)   
      
   3. But I want to script it, where I created this shortcut:   
      TARGET: %comspec% /k "wmic.exe /Namespace:\\root\default Path SystemRestore   
   Call CreateRestorePoint "My Shortcut Restore Point", 100, 7"   
      ICONFROM: C:\Windows\System32\imageres.dll   
      [Advanced][x]Run as administrator   
      
   4. When executed the command "appears" to work (albeit too quickly so):   
       Executing (SystemRestore)->CreateRestorePoint()   
       Method execution successful.   
       Out Parameters:   
       instance of __PARAMETERS   
       {   
               ReturnValue = 0;   
       };   
       C:\Windows\system32>   
      
      (This takes only a split second to run to completion.)   
      
   4. But, when I look if the restore point was created, it doesn't exist:   
      Win+R > sysdm.cpl > [System Protection][System Restore]   
      (_)Recommended restore   
      (o)Choose a different restore point   
      [Next] [x]Show more restore points   
      (I only see the restore points that I manually created.)   
      
   What am I doing wrong?   
      
   Do you have a batch script to create a restore point on the fly?   
   --   
   Windows requires hundreds of tweaks to get it running efficiently.   
      
   --- 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