I feel like this should be simple but I searched for a good half hour and couldn't find it.
Basically I have an Adobe PDF file that runs a snippet of JavaScript to verify input and, if it deems the input ok, save the PDF to the desktop. This works fine when I hard code in the desktop, ex.:
var mypath = "/c/users/someusernamehere/desktop/";
However, we are trying to deploy this to many machines here, I do not want to have to hard code in everyone's desktop path.
Is there a way for JavaScript to get the desktop path of the current user?
PS. All of our machines use Windows 7.
/EDIT To clarify, this is not an Internet thing, it is all local. Just a PDF that is already stored on the user's machine accessing a JavaScript file stored in the same directory. That directory is:
C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Javascripts