how to get desktop path

Hi,

I'd want to automatically save my word exported document on the desktop.

But I don't know how to get the path of the desktop because all the computers are in a network and then use the Windows' Login.

For example my path is D:\Users\"login"\Desktop. How to get the "login" dynamic ?


Estebell - Fri Oct 03 03:29:31 EDT 2014

Re: how to get desktop path
llandale - Fri Oct 03 15:33:41 EDT 2014

  • print "My Login Name is: [" username() "]\n"
  • print "My DOORS Name is: [" doorsname() "]\n"
  • string Path =  (getenv("USERPROFILE")) "\\Desktop"
  • print "My Desktop is here: [" Path "]\n"
  • system("explorer.exe "Path)   // Should open the Desktop

-Louie