?
Solved

Open External Files Using UNC Path via a Button

Posted on 2009-02-21
6
Medium Priority
?
503 Views
Last Modified: 2012-06-21
I need to use buttons to open up an Access 2003 Dbase and an Excel 2003 workbook both residing on a shared network folder.  Now I know I can open both of these using hyperlinks but this opens them up within a browser and that results in other issues hence my need to use UNC path, thanks.
0
Comment
Question by:ShadowIT
  • 3
  • 3
6 Comments
 
LVL 5

Accepted Solution

by:
Dhope earned 1500 total points
ID: 23704574
0
 

Author Comment

by:ShadowIT
ID: 23708118
Yeah, I thought so too but it doesn't...I added this to the button but keep receiving an error:

 Expected ';'
File:script.js
Line:29
      Dim wshShell
0
 
LVL 5

Expert Comment

by:Dhope
ID: 23709543
Can use this C# code instead

Put in a button, edit code for the button (make sure it's C# code)

You need to add in
using System.Diagnostics;

then within the button code
Process.Start("C:\\blah.txt");

replacing blah.txt with the UNC of course

http://dotnetperls.com/Content/Process-Start-NET.aspx
0
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 
LVL 5

Expert Comment

by:Dhope
ID: 23709551
Also, the form needs to be fully trusted
0
 

Author Comment

by:ShadowIT
ID: 23714953
Can't change form to C# because I'm using JScript elsewhere...
0
 

Author Closing Comment

by:ShadowIT
ID: 31549651
I just switched the form to vbs and was able to use this..
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question