IDE :: Get Executable Running?

Jan 13, 2011

Firstly I'm not a programmer and do not pretend to be one. I just enjoy killing some spare time I've been usining Visual Basic (started with VS2005 and now onto VS2010) to develop a program. Up until now I've been happy to plod along running the progam from the development environment. However, I recently was asked by an colleague if they could have a copy of the program to use.Therefore I opted to create an executable file for him to use. The problem is that whislt the executable file runs fine on my machine (Win 7) where VS2010 is installed, it does not deploy correctly on his machine (XP pro). Following is the message that I get:See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

[Code]...

View 2 Replies


ADVERTISEMENT

Running Executable Within Program?

Aug 5, 2009

I'm trying to run a program (mame.exe) within a vb program. Mame is a program that allows you to run old video games. The games are stored in rom files. If you want to run mame.exe from a dos prompt, the syntax is "c:/mame.exe [rom]". The [rom] is the particular game you are running. I'm trying to create a front end menu from which I can execute games.

I've tried:

Process.Start(
"c:/mamefiles/mame.exe [rom]")

and I get an error that says it can't find the file.

I tried

Process.Start(
"c:/mamefiles/mame.exe", "[rom]")

and it seems to start the program but immediately shuts down mame.I tried

Shell("c:/mamefiles/mame.exe [rom]")

and again it seems to start the program but immediately shuts down mame.

View 8 Replies

Executable Directory Where Application Is Running From?

Apr 7, 2010

I need to get the path (not the executable) where my application is running from:System.AppDomain.CurrentDomain.BaseDirectory()

View 3 Replies

Running A VB2005 Executable On Any Windows OS?

Mar 14, 2011

Can a VB2005 executable created from VS2005 run on any Windows OS (vista, 7)? If not what is the "patch"?

View 1 Replies

Check Creation Date Of Executable That Is Currently Running

Jun 9, 2009

I would like to implement into my program a version query of the executable and I figured the easiest way would be having a check on the date of the executable. So how can I check the creation date of the executable that is currently running (from the program itself that is)?In short - double click on .exe and it will tell the date of its creation

View 10 Replies

Running An Executable Application .net Version Lower Than 4?

Jul 13, 2010

It appears that the executable application I created can only be run on a computer with .net 4. How can I compile/create the executable to run on a computer with .net 2?

View 3 Replies

VS 2005 Running Fortran Executable Using 'Shell'

Apr 14, 2009

I have an old Fortran program that I've compiled to a windows executable. On opening this from an explorer window the executable runs fine, however on using Shell to run the program a traceback error occurs. Just to be sure I used Shell to open a batch file which runs cmd /K ...exe Why is it that on double-clicking the batch file it will run the executable correctly, however on calling it from my visual basic (very simple button) program the batch file opens the command prompt just fine but does not execute the whole Fortran code successfully? Incidentally I have found that the error occurs on a line to do with reading from a file; it can print to the command prompt etc. with no problems just not deal with the reading the external text file for some reason. By the way paths for files etc. are definitely correct. It makes no sense to me, but from a bit of research it may have something to do with correcting the read statements - at the moment they are just in the form: read(99,*)

View 1 Replies

Shell Command Launches An App Differently Than Running The Executable

Sep 1, 2009

I have a legacy vb6 application that uses a shell command to launch a newer .net application. It's a very simple command, just launches an app. Here's the problem. When I run the .net app through the shell command, it tries to connect to a database that is not referenced in it. If I double-click the .net executable, it runs just fine and connects the way it is supposed to. Normal, no problems. Only when I run it from the shell command do I have problems. I have checked everything I can think of and simply can not come up with a reason why the app would behave differently when launched from a shell command.

View 3 Replies

VS 2010 Program Crashes As Published Executable, Not As Program Running In Studio Or Express?

Jun 6, 2012

I wrote this VB program to be able to throw a device we developed into programming mode where we use an ATMEL Flip installer to upload new firmware. I can program one device after another running the application off of Visual Studio Express 2010 or Visual Studio 2010, but when I go to publish this file and run it on another machine, it becomes unstable and crashes after each upload. On those same computers if I run the raw unpackaged program under Visual Studio Express, the system does not crash, and I can program devices repeatedly.

View 5 Replies

Deployment :: Can An Executable Program Create An Executable File

May 17, 2012

I have a program that outputs a file. I want the user to be able to just double-click the output file and launch the program, just like Word and Excel. In Word for instance, one doesn't necessarily have to open WORD then click on File--> Open and locate another Word doc. He can just go to the folder and open the Word doc. I want to implement the exact scenario in my program.

So far I have tried creating TextFile and added it to the Resources. On FormLoading, I simply I stream-read the Resouce file, but I can't write to the Resource on FormClosing, since the Resource is ReadOnly. Also, the Resource is built & compiled so I suppose you can't add anything to it at run time.How you lunch an output file without launching the Executable program that created it?

View 1 Replies

Executable On Vista - Open The Executable It Goes To A "WindowsApplication1?

Jun 1, 2009

I have an executable that I was able to get working on all XP machines by registering all the .dll's associated with it.On Vista, however, I go through the exact same registration process but right when I open the executable it goes to a "WindowsApplication1 has stopped working" dialog. I registered the DLLs in the SysWOW64 folder. I also ran Dependency Walker which came up with IEFrame.dll as flagged, don't know if that is relevant though.

View 6 Replies

Generate Executable From An Executable?

Jul 24, 2011

I Actually want to provide a new service which requires creating executables on the fly from executables generated in vb.net. For example lets say I have a form with a textbox and in that textbox we pass an argument which is for example the serial of the product, then we have a button which once clicked will generate an executable on the fly which has also a textbox requiring that serial to run? That was only an example but the main thing is how to generate that exe on the fly.

View 4 Replies

Application Running Fine On XP But Same Exe Not Running In Vista?

Apr 24, 2010

I had done one application using api which send the message to given number. The working of software is very fine without any error working on windows XP SP2. I heard that vista already contain the .net frame work so didnt installed .net frame work in machine. I checked in vista it shows .net frame work is in machine. But when same code i tried to run on Vista it gives the error. Error is as follows

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SmsSendingApplication.frmSingleMessage.InternetOpenUrl(Int64 hInternetSession, String& lpszUrl, String& lpszHeaders, Int64 dwHeadersLength, Int64 dwFlags, Int64

[Code].....

View 7 Replies

Run An Executable From A CD?

May 16, 2010

I have written a very simple menu that I intend to burn to a cd. I want the menu to be able to run executable files from the cd. The problem is everyone's cd drive has a different letter, is there any way that the program can take it's own location and then find the executable by adding where it is on the disc to that? Or is there another way?

View 5 Replies

.net - Cant Run Executable On .Net Framework 2.0?

Jun 4, 2011

My problem is simple I have my application which was perfectly executing under framework 2.0, but recently I upgraded my code to add few lines.

ServicePointManager.DnsRefreshTimeout = 500
ServicePointManager.DefaultConnectionLimit = 100
ServicePointManager.EnableDnsRoundRobin = False
ServicePointManager.MaxServicePointIdleTime = 1000
ServicePointManager.SetTcpKeepAlive(False, 500, 500)

Now when I comment these, the application is executed flawlessly, but when included program requires Framework 2.0 SP2 upgrade, I searched MSDN for this but looks like this is available from Framework 1.1

I dont want my users to upgrage to SP2 for such minor things but cant also remove this from my code, Is there an alternate to achieve similar ServicePointManager settings without a Framework Upgrade?

View 1 Replies

A Class To An Executable?

Mar 12, 2012

I received the class below in C# and I've converted it to VB but I cant make an executable from it. I've tried. It will not take any kind of load routine.How do I execute it just for reads? [code]

View 1 Replies

Calling 16 Bit Executable On 64 Bit OS?

Jul 20, 2009

Is there any way to execute older 16 bit executables on 64 bit OS?

my code does a lot of runs of old 16 bit .EXEs inherithed from DOS era, but it does not work on 64 bit.

View 8 Replies

Calling Executable Off Of USB

Mar 3, 2011

I am making a program that will be run on a usb drive. The program needs to run exe that are on the drive but do to it being a usb drive from computer to computer the drive letter can change. How would I be able to run the exe,

Example
F:Portable-VirtualBoxPortable-VirtualBox.exe

So I would use
Private
Sub
Button4_Click(ByVal
sender As
System.Object,
ByVal
[Code] .....

No problem but when I put the usb into my other computer drive F is no longer drive f: but drive o:

View 4 Replies

Executable Not Run From Within VB Script?

Aug 17, 2010

I'm new to Visual Basic so please excuse my ignorance.I'm trying to get an executable to run from my VB script. Launch.exe runs if I browse to it and double click on it but, if I try to get it to run from the script, nothing happens?Here is my code. Note that the calc.exe does run from within the script. It's the Launch.exe that doesn't seem to do anything.

[Code]...

View 2 Replies

Re-run An Executable In Program?

Feb 9, 2010

I am totally a newbie to VB.net, now I am developping a Windows Service, which will start an *.exe when starting. How can I detect and re-start a process of this executable if it got killed by some other program?[cod]e...

View 2 Replies

The Last Change Wasn't Successfully Persisted.Please Shut Down The Running Application. Sending Message To Designer Failed.Designer May Not Be Running.''?

Jun 4, 2011

what account for this error message in ls beta 2?'' The last change wasn't successfully persisted.Please shot down the running application.

View 1 Replies

Aspx.net To Executable File?

Feb 17, 2009

I'm using visual studio 2008 and I'm almost done on my project. My problem now is it's possible to convert aspx.net to an executable file?

View 1 Replies

C# - Edit Metadata Of Executable?

Feb 17, 2012

I read a lot about changing the metadata of music or images, but what about normal executable? How do I edit the comment / title of them? I am using .NET 2

View 2 Replies

Executable - How To Specify Patch For Database

Jun 22, 2010

How to specify the patch for the database when making a vb.net program executable. The data base which is access is in the debug folder of the program.

View 3 Replies

Executable Conversion With VB 2008?

May 24, 2012

My issue is when I read from an existing executable and convert it to string and back to executable windows says it is not a recognized 32 bit or 64 bit application? The code below is real code I have rewritten many times but to no avail. If I leave out the part where I convert the bytes to string and just copy the binary and create a new exe with the binary the program works. But the whole concept of string converting back to valid binary has me stumped? This is Visual Basic 2008 code:

Imports System.IO
Imports System.Text
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim tempPath = System.IO.Path.GetTempPath

[code]....

View 3 Replies

Executable File Is Always Readonly

Aug 20, 2009

I develop my application with VBNET2008 express and SQL server express 2005 but a little problem appears,my executable file is always READONLY.However,I make modifications in my code file,it stills unchangeable in the Executable File How can i do for this?

View 6 Replies

Executing Another Executable File From VB?

Sep 15, 2010

I'm trying to make a program that has command buttons, each running a different file. I have added some files so far, but I encountered a problem with a couple of them.

For example, I want to run Zuma's Revenge! right from the program, but it is not working. If I run the game from outside the program, it runs perfectly, but when I try running it from the program, it keeps saying "Zumas Revenge! - Adventure has stopped working."

What really confused me, is that the game is running normally if I run it from its folder or by using the shortcut, while from the program it isn't.I'm using Windows 7, with Visual Basic 2010 Express.

'Here's the code I'm using:

Private Sub Zumas_Revenge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Zumas_Revenge.Click
Process.Start(My.Application.Info.DirectoryPath & "umas Revenge! - AdventureumasRevengeAdventure.exe")
End Sub

View 1 Replies

Getting A Version Info Of An Executable?

Oct 8, 2011

I'm wondering how do I get a version of an external executable when Launcher_Load, then after version is found I want it to Label1.Text = "[version]"I've tried searching through websites and from codes I found it didn't manage to do the job.

View 2 Replies

Handling Error Within An Executable

Jan 29, 2010

I am working on an executable to load set of data into databases.I will be running it as a windows service. I will be doing several different checks to see if the fields exists in the incoming files. When i do the checks using if statements.I would like to stop processing when a major error occurs or when any thing is interrupted Like say windows crashed. I would like to create an error file with the error message in it for that particular file. I would be monitoring error folder everyday to check if there are any errors.

View 1 Replies

How To Create Executable File

Nov 2, 2010

show me the steps to create a executable file of my project

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved