Save to a separate system folder

Hey there, I’m trying to save a screenshot to a separate system folder, as opposed to the Assets folder. I’m using a custom encoder which I’ve modified as opposed to the usual Application.CaptureScreenshot to see how they compare, and everything is working beautifully. The only problem is that I would love for my screenshots to save to a different file directory than in the Unity Assets folder. I’m currently using:

File.WriteAllBytes(Application.dataPath + "/" + screenshotName + sysTime + sysDate +  ".png", bytes);

I realise Application.dataPath references the Assets folder, but that was only as a test because I could not figure out a solution to save a .png to a separate folder.

If someone could help me, that would be greatly appreciated!

Thanks! Klep

Can you use an absolute file path? Something like “C:\Users\Yourname\filename” on windows.