I would like to start a new process but I need it to use a different folder for AppData. In a windows batch file you can do it like this:
set APPDATA=C:\MyDataFolder
It will set the AppData for any program launched in the batch file, so how can I do this in C#?
You can add environment variables to the
ProcessStartInfo: