Solved

VB.Net/Windows Server - run shortcut on server without message "Do you want to run this file"

Posted on 2012-12-24
12
494 Views
Last Modified: 2012-12-26
Hi Experts.  I have a VB.Net program that creates a shortcut on a windows server.  The user clicks on the shortcut in explorer to run a small program on the server.  The problem is that they get a warning message "Do you want to run the file xxxxxxxxx".  As there are many operators who have to click these shortcuts a few times every minute, is there a way to avaoid the warning showing - may by changing permissions or something?   Tahnsk for the help
0
Comment
Question by:PNRT
  • 7
  • 5
12 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38719519
Is the program on the server where the shortcut is? You can get rid of the warning by signing the app with your certificate.
0
 
LVL 2

Author Comment

by:PNRT
ID: 38720757
Yes the program that the shortcut refers to is on the server.   How would I use a certificate to sign the app?  Googling it seems to refer to having to buy a certificate?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38720766
Yes certificate has to be bought from an authority.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38720768
You said that user double clicks a shortcut in explorer to run the program on server. Is this explorer running on server via remote login?
0
 
LVL 2

Author Comment

by:PNRT
ID: 38720775
Hi, no, the user has a shared drive which is a folder on the server.   The shortcut is located in that folder.  When they double click the shortcut, they get the "Do you want to run this file".
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38720781
That's the reason then. They run an application from network location on local computer hence the message. Easiest way to get rid of the message is to copy the application to local computer.
0
Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

 
LVL 2

Author Comment

by:PNRT
ID: 38720785
I was hoping to avoid that as the program uses files that are also situated on the server, so running the program from the local machine would mean opening up more of the server to the users and would get quite complicated
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38720832
Programs already run on the local computer. Double clicking an exe on a network drive does not run the exe on that server. Give it a try by copying locally and see what happens.
0
 
LVL 2

Author Comment

by:PNRT
ID: 38720837
Sorry - we misunderstanding here.   Its not an exe thats creating the warning,  Its a shortcut on the server that runs a program on the server.   Its the shortcut thats creating the warning.  Thanks for the reply
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38721532
Its same thing. You can double click the exe directly to check that. Are we clear on the fact that exe is run on local computer?
0
 
LVL 2

Author Comment

by:PNRT
ID: 38721549
No sorry, I dont think wé have it right yet.     I have a program that sits on the server.   I also have a a shortcut to that program on the same server.   I have users that double click the shortcut via a mapped drive to the server, and the program then runs correctly.   However, when the program runs, the user first gets the warning - "Do you want to run the file".   I was just looking for a way to stop the warning.  Thanks for the reply.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38721705
>I have a program that sits on the server.   I also have a a shortcut to that program on the same server.   I have users that double click the shortcut via a mapped drive to the server, and the program then runs correctly.

Program runs correctly on the local computer. The reason behind warning is that you are running the program from a network location. Its a security feature.


> I was just looking for a way to stop the warning.
As I said, easiest way out is to copy the program to local computer. It will still be able to access same server resource that it is doing now.
0

Featured Post

Make managing Office 365 email signatures a breeze

Are you using Office 365? Having trouble trying to set up email signatures for your users? Getting stressed out managing multiple signatures? Need an easier way to manage? We have a solution for you, try the most-user friendly and powerful signature management tool on the market.

Question has a verified solution.

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

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now