473,750 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the functionality of Start -> Run in code

Hi this is a general windows question as much as .net.

I need to connect to a directory on a UNC path that is on same WAN but a
different domain to the application. The directory is protected by a username
and password.

Trying to access a System.IO.Folde rInfo Object with the UNC Path or using a
System.Diagnost ics.Process object to shell Explorer passing in the UNC as
the argument results in a Win32Exception "The system cannot find the file
specified". Passing the UNC path to the process object as the file name
(StartWithShell ExecuteEx) causes a Win32Exception "Logon failure: unknown
user name or bad password".

Manually Entering the UNC path into the RUN box from the start menu prompts
for the username and password. After this all of the above methods work fine
for the remainder of the User's login without need for further authentication.

How can I duplicate (Or preffeably just call) the functionality of Strat ->
RUN at runtime.

Thanks

Ben
Oct 20 '05 #1
0 1130

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8223
by: Leigh Riley | last post by:
Hi there, Can anyone tell if there's a solution to this for a Windows environment? If this was running under Linux, it would be a problem, but... I have a php script that when run, examines a file, and then updates a local database. I would like to run this script (in the background - not in a browser window) via the command line every e.g. 100 seconds - any ideas?
19
1679
by: bearophile | last post by:
This is my first post here, I hope this is the right place to talk about such things. I have few comments and notes on the Python language. I've just started to learn it; this is negative because I'm ignorant still, but it's also positive because I can still see details that later probably I'll start to ignore. Some of the functions of IPython seem good and simple, and I think some of them can be integrated into the main Python line. ...
9
3295
by: cjl | last post by:
Hey all: I am working on a little script that needs to pull the strings out of a binary file, and then manipulate them with python. The command line utility "strings" (part of binutils) has exactly the functionality I need, but I was thinking about trying to implement this in pure python. I did some reading on opening and reading binary files, etc., and was
5
8859
by: Jonathan Brady | last post by:
I couldn't find this anywhere so I'm not sure that it exists. In most programming languages, one can define a value and then uses that value by referencing the name in all of the source, and if that value needs to be changed, then it's a simple matter of changing the definition, and the change will be reflected of course throughout the whole thing. Example:
0
1268
by: blongmire | last post by:
OS: WinXP Home Access 2000 Word 2000 I loaded 1998 vintage 16-bit business mapping software onto a PC and I think it overlayed some OS files dealing with DDE functionality. After that software install, my DDE functionality between Microsoft Word 2000 and Access 2000 and Excel 2000 has been affected. Now, when I try to open a Word document that was formerly successfully
3
2146
by: nkunapa | last post by:
Hi: I am looking for any ideas/comments/suggestions on how a Windows Service kind of functionality can be acheived from a web application which which will run under IIS or for that matter any application server say Tomcat. I have a Windows service which should run every half hour and call four different methods in a Web Service in serial mode. The methods will have to wait for the previous one to finish and if the previous one is a really...
2
4241
by: tuffs | last post by:
Hi All, I am new to this group and this is my first mail to the group. I have a requirement wherein we need to support type ahead functionality for combo boxes. For e.g. Say we have 5 entries in combo box "1, 23, 14, 18, 4". The default functionality of combobox is, whenever I press 1 from key board, it will take me to first entry in combo box which starts with
23
1769
by: Dautkhanov | last post by:
Hello ! Does anybody have cutted version of prototype.js with the AJAX functionality only? I am a new in prototype.js topic, so I think this task should be done by other developers. Maybe protorype.js should be splitted into small pieces of the js scripts with groupped functionality
4
1195
by: preetksaini | last post by:
hi i need to create internal search functionality for user on my site in PHP.can anyone help me out for the same.since i dont have any knowledge of from where to start. thanx.
3
1136
tharden3
by: tharden3 | last post by:
I've gotten some pretty basic stuff down. I can make a web site look pretty, but it has little or no functionality. I would like to start learning to add things like forums and email, or a "contact us" section. I just need to learn how to do it. PHP? Javascript? What do I need to learn/do? I guess PHP and js would be a good start... The visuals on the site look fantastic, but that's all it is... visuals.
0
8839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9584
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9257
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8265
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6811
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4894
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.