C
C#Stix

Open restore point code C#

im making a gui and wondering what the code is to open up your system properties to make a restore point manually
S
SpReeD16d ago
What code do you mean? and what has it to do with your program? Do you mean sysdm.cpl?
S
Stix16d ago
I have it able to make a restore point so if they want to revert anything they could but i dont know how to make it open system properties
S
SpReeD16d ago
Run sysdm.cpl
S
Stix16d ago
ok so Process.Start("sysdm.cpl"); ? That didnt work
S
Stix16d ago
No description
S
Stix16d ago
brought me here im trying to get it to bring me here
S
Stix16d ago
No description
S
SpReeD16d ago
It's the same cpl, my guess is that the latter was opened with admin privileges
LL
Lex Li16d ago
Almost all Windows operations are wrapped as PowerShell cmdlets, so for your case, use Checkpoint-Computer to write a .ps1 file, https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/checkpoint-computer?view=powershell-5.1 and then pass it to powershell.exe in Process.Start.
Checkpoint-Computer (Microsoft.PowerShell.Management) - PowerShell
The Checkpoint-Computer cmdlet creates a system restore point on the local computer. System restore points and the Checkpoint-Computer cmdlet are supported only on client operating systems, such as Windows 8, Windows 7, Windows Vista, and Windows XP. Beginning in Windows 8, Checkpoint-Computer cannot create more than one checkpoint each day.
J
jcotton4215d ago
pretty sure there are APIs for that
Want results from more Discord servers?
Add your server
More Posts
System.NullReferenceExceptionHey, I need your help. I've been struggling for days with this code. My code says System.NullReferenEntity Framework IQueryable questionI'm trying to get a list of prescriptions from my Patients entity: ` var kk = await _context✅ Should I create single or multiple background servicesI need to fetch the same data in background service. I need to fetch it and store to cache every 5 mHelp With hints on how can i make multipull accounts using like arrays or something similar to arrayi just want an easy way this is my code GIve me hitns onlySystem.InvalidOperationException: Unable to resolve service for type 'MovieApi_backend.database.Contwhen i connect my application to database postgresql and when i hit the post req getting error candata update error in c# sqlI want to change the password of the user in the database. I get the password changed warning on theASP Core 8 - Custom 404 HandlingI have a few scenarios where I need to show a different kind of view and a bit of different logic deAdd suffix to version without it showing up as a prereleaseI'm writing a lib that wraps a bunch of external GRPC APIs and exposes them via the same interface. Help refactor serviceHi! I have data of many `Station` models. Their information updates every ~60 minutes. I need to sto✅ looking for help/contributorsDotmenu is a straightforward console menu library designed to streamline user interactions in consolHow to find relative file path for file inside of project?Dealing with a C# console application, I have a folder inside the project named Files and inside thaPassing parameters to overloaded constructorHow would I pass the texture2D variable to be handled in the second constructor. Obviously return doI am trying to store data in database using EF my code run fine but its not storing dataif (response.IsSuccessStatusCode) { var json = await resUsing ref for large data types.Hi, just looking for a little clarification on the *ref* keyword when passing data into a function. crud operations with blazor serverI have a backend that I built and now I want to use it with api calls. I created same model with bacminor glitch, player twitchingso i have a glitch where the player starts "twitching" when you walk beside a block or just on a blo✅ BackgroundWorker getting progressI have a winform applications and with this I have put a ProgressBar on it. I was manually changing My tech stack, what to focus now?- .NET Core - Entity Framework Core (Code First) - MVC - Web API - Identity and JWT - Mediator & CQRBuild Issue due to $(Platform) valueWe are facing build issue when we try to build .net project in custom project configuration, like DePFX certificate for signing the application packageI am trying to use a certificate from azure key vault, but it says that it is invalid or another rea