Tip

Create a Link to a Network File in Memo

Is your company running into an issue where people are sending messages back and forth with large attachments and overloading the mail server? I have added a small addition to the mail memo form that allows the user to create a link to a file residing on a valid network drive rather than sending the attachment. When the receiver opens the note, he/she now has a message that shows the link and an icon that when pressed will open the corresponding application and file.
Create a form with a layout region only. (I called it parameters). In the layout region, add two fields with a label for each.

For the first field (I called it application.), make it Keyword, editable and combo. Then add the following to the keyword choices:

C:Program FilesMicrosoft OfficeOfficeExcel.exe
C:Program FilesMicrosoft OfficeOfficeWord.exe
and so on, depending on the types of links you want to offer.

For the second field (I called it path.), make it text and editable. This will be used for the user to enter the path and file name they want open.
ex.: e:directorywordfile.doc

Now, in the memo form, you can add the following:
Create an action button. (I called it "send a link to a network file.") This button opens the dialogbox that you created in the previous form.

Under the body field in the memo form, add an action hotspot (I have a pointing finger.) and add the following code:

@Command( [Execute]; application; path )

This will start the application that the user chose from the dialogbox in the combobox and open the file that the user entered in the path field in the dialog box.

I gave a label to the hotspot. (Please open the following attachment: path (field).) I also hid the paragraph unless there was something in the path and application fields.

You can add on to this depending on your corp's structure.

Hope this will help someone save some of that valuable server space!

Regards
Nelson Cardoso

This was first published in November 2000

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.