Permalink
Browse files

Merge pull request #3 from AdmiralNemo/master

Fixes #2
Fixes #4
  • Loading branch information...
dustyburwell committed May 7, 2012
2 parents 7f35ed9 + 41560b4 commit 5bf604c50d57b717552fcd0919687c2e9f91e7cd
Showing with 4 additions and 1 deletion.
  1. +4 −1 PrintScreen/Program.cs
View
@@ -67,8 +67,11 @@ public static void TakeSnapshot()
Clipboard.SetImage(screenshot);
+ string fileName = string.Format("snapshot_{0}.png",
+ DateTime.Now.ToString("yyyy-MM-dd_H-mm-ss"));
+
var filePath =
- Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "snapshot.png");
+ Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fileName);
screenshot.Save(filePath, ImageFormat.Png);
}
}

0 comments on commit 5bf604c

Please sign in to comment.