Results 1 to 7 of 7

Thread: [RESOLVED] Create System Restore point

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    11

    Resolved [RESOLVED] Create System Restore point

    Hi

    I'm a bit of a novice when it comes to VB but i'm wondering if it's possible to create a System Restore point from within VB?. The reason why i'm asking is becasue i'm writing a small application which makes some major changes to the system but becasue this program will run on a number of other PC's i would like to have a backup plan incase things go wrong!

    Thanks for your help!

    Steve

    PS: I'm using Visual Basic 6.0 SP2 on XP Pro SP2
    Last edited by sjmatthews; Jan 10th, 2006 at 07:29 PM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Create System Restore point

    If they are running XP then it will automatically create an restore point whenever a program is installed.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Create System Restore point

    But can it be done programmatically?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Create System Restore point

    Maybe. Perhaps searching for some kind of scripting function that will do it for you on MSDN.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Create System Restore point

    Some results from this Google search:

    http://www.kellys-korner-xp.com/xp_restore.htm (has a VBS script)

    http://www.freevbcode.com/ShowCode.asp?ID=6911 (VB Code)

    I have system restore disabled. Didn't tested them.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    11

    Re: Create System Restore point

    Quote Originally Posted by iPrank
    Some results from this Google search:

    http://www.kellys-korner-xp.com/xp_restore.htm (has a VBS script)

    http://www.freevbcode.com/ShowCode.asp?ID=6911 (VB Code)

    I have system restore disabled. Didn't tested them.
    Hi Everyone

    Thanks for all your replies, and thanks iPrank for the links, the VB code worked a treat. I can't believe such few lines (3 i think) can do something so useful!. I can now write my application in the save knowledge that i can create a Restore Point incase things go wrong!

    Once again, thanks very much for your help - it's very much appriciated !

    Steve

  7. #7
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: [RESOLVED] Create System Restore point

    Glad to help.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width