Problem solve Get help with specific problems with your technologies, process and projects.

Use Command EditDetach to detach an executable file onto a Windows desktop

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.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...