Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Windows path to current user's desktop

Guest
Feb 08, 2012 Feb 08, 2012

In MacOS "~/Desktop" is the path to the current user's desktop. What would I use in Windows? I've tried Folder("%username%/Desktop"), but that didn't work. Any suggestions?

TOPICS
Scripting
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 08, 2012 Feb 08, 2012

You would use neither Extendscript allows instant access to the current user's desktop through a predefined member of the Folder class:

alert (Folder.desktop);

Folder.desktop is a fully functional pointer to a regular folder, as can be seen with

alert (Folder.desktop.getFiles().join("\r"));

(see http://jongware.mit.edu/idcs5js/pc_Folder.html#desktop)

Translate
Community Expert ,
Feb 08, 2012 Feb 08, 2012

You would use neither Extendscript allows instant access to the current user's desktop through a predefined member of the Folder class:

alert (Folder.desktop);

Folder.desktop is a fully functional pointer to a regular folder, as can be seen with

alert (Folder.desktop.getFiles().join("\r"));

(see http://jongware.mit.edu/idcs5js/pc_Folder.html#desktop)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 08, 2012 Feb 08, 2012
LATEST

Thanks a lot!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines