Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2004, 04:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default .NET EXE won't run right in SHELL from VBS

We have written a VB.NET program that is being run from a shared network drive. Amongst other things, this program attempts to display a graphic file from a sibling folder.

When the executable is run directly from the folder, it displays the graphic just fine. But when executed from a VB script via WScript.Shell, it fails to load the graphic, although the program apparently otherwise runs OK.

What is it about running from a shell that is causing it to fail to load the graphics? Does a shell not inherit the security policy for the workstation/network PIN being used? Is there something we need to do to get the shell to grant rights to other subdirectories? Or is there something else entirely causing this?
 
Old December 20th, 2004, 05:49 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Have you tried running the VBS file under a different security context?

For that you can either use Run As, or schedule the script and assign a user there.
That may not be the answer to the problem, but it might help in tracking down a security issue.....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Search and Survive by Tricky (Track 13 from the album: Vulnerable) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Run exe from VB .NET windows program iconsult Pro VB.NET 2002/2003 5 September 18th, 2011 08:15 AM
How to run a .NET .exe on a remote PC vikas67k C# 5 August 26th, 2008 01:52 AM
Execute *.exe in vbs kodakodu VBScript 1 November 22nd, 2004 03:33 AM
How to run a client-side .exe in the ASP.NET frame Martyn ADO.NET 1 July 17th, 2004 12:12 AM
how can i run ildasm.exe in vs.net csc820203 VS.NET 2002/2003 0 April 30th, 2004 08:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.