Hi! I'm trying to use the command EditDetach to detach an executable file onto a user's Windows desktop at the click of a button. Do you know the reference to put into the targetfile perimeter of the formula to specify the Windows Desktop?:@Command([EditDetach];; sourcefile; targetfile)
This depends on your user's configuration. There isn't a function in Notes to determine the directory of the windows desktop. If you are confident that you have a homogenous environment and that environment is 95, 98, or ME, and your users do NOT use multi-user workstations, it is easy. For example, unless changed by the user during installation the directory is c:windowsdesktop. With Windows 2000, it is quite different because there is by default more than one desktop directory.
To do this with confidence, I believe you might have to hook a windows API to get the current Windows Desktop directory. It is a lot of work to do this and I would recommend you leave the filePath arg off and let the user select where to put the file. In this day and age, most users can handle this because they've done it many times downloading files from the internet. Sorry I can't offer an easier method.
Dig Deeper on Domino Resources - Part 4
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.