Date: Nov 13, 2012 5:19 PM
Author: spasmous
Subject: Save to current user Desktop (on Windows)

I wrote a MATLAB program that grabs a screenshot and writes it to the desktop. Since I never planned on sharing it, it had my Desktop path hardcoded in. However, now I would like to generalize the code.

What is the general path to the desktop on Windows? I tried ~/image.tif and Desktop\image.tif but these do not work.