Save Variable Values to a file and start another application when unhandled error occurs
-
I want to save variable Values to a file and start another application when unhandled error occurs. Does anyone has any idea?
Regards
Mahdi Ghiasi -
I want to save variable Values to a file and start another application when unhandled error occurs. Does anyone has any idea?
Regards
Mahdi Ghiasimahdigh wrote:
Does anyone has any idea?
About what exactly? Writing things to a file shouldn't be much of a problem. There's an event[^] that's triggered when an unhandled exception occurs. Starting an application is done via
Proces.Start
[^]. That about covers it, I guess :)I are Troll :suss:
-
mahdigh wrote:
Does anyone has any idea?
About what exactly? Writing things to a file shouldn't be much of a problem. There's an event[^] that's triggered when an unhandled exception occurs. Starting an application is done via
Proces.Start
[^]. That about covers it, I guess :)I are Troll :suss:
Where is Proces.Start in VB?
Mahdi Ghiasi
-
Where is Proces.Start in VB?
Mahdi Ghiasi
mahdigh wrote:
Where is Proces.Start in VB?
In VB.NET you'll find it in the diagnostics namespace. If you're using VB6, then there won't be a namespace. You'd use the built-in
Shell
function, or call theCreateProcess
[^] API. Hope this helps :)I are Troll :suss:
-
mahdigh wrote:
Where is Proces.Start in VB?
In VB.NET you'll find it in the diagnostics namespace. If you're using VB6, then there won't be a namespace. You'd use the built-in
Shell
function, or call theCreateProcess
[^] API. Hope this helps :)I are Troll :suss:
Where is diagnostics namespace in VB.NET?
Mahdi Ghiasi
-
Where is diagnostics namespace in VB.NET?
Mahdi Ghiasi
It's under the
System
namespace. You can call it like this;System.Diagnostics.Process.Start(@"c:\Them_Variables_Be_Here.txt")
That would open the file in the application that's associated with text-files, which defaults to Notepad. A more elaborate example can be found on MSDN[^]. Enjoy :)
I are Troll :suss: