Vb6 exe name




















How to comment blocks of code in VB5 and VB6. How to find and replace missing members of control array Visual Basic 6. Although App. EXEName looks good, this isn't what I'm looking for.

EXEName is referencing the executable's title defined in the projects properties , and not it's file name. Even though when compiling I could use the title to do the version incrementing, I would really like to use the file name.

You could get all files of your App. Path and match the. I don't see why just do it the original way, updating it in your Project properties, would be the simplest way. There is an api getmodulename i think, but you would need the process-id of your app One System to rule them all, One Code to find them, One IDE to bring them all, and to the Framework bind them, in the Land of Redmond, where the Windows lie People call me crazy because i'm jumping out of perfectly fine airplanes.

Originally Posted by Millerni Although App. That is not actually the case. I just tested it here. Exe I run the program and the caption reads MyTest. Exe I renamed the exe to MyTest2. Exe I run the program and the caption reads MyTest2. Exe I renamed it to BogusProgram. Exe and again it reads BogusProgram. Exe So it would appear that this does indeed give you the actual exe name of the running program and not what is set in the properties. You should have tried it before you dismissed it.

When listing all of the files and searching for an executable, are there ways of confirming that the. Shell "taskkill. MarkJ MarkJ Print title ' See if this is the target window. LogEvent "Warning Koekiebox Koekiebox 5, 13 13 gold badges 51 51 silver badges 87 87 bronze badges. Terminate Next End Sub. Austin 2, 2 2 gold badges 23 23 silver badges 34 34 bronze badges. Doing this through VB6 Internal ways Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. Wednesday, March 20, PM. Monkeyboy 0. Monkeyboy 1. You may want to try finding a vb6 forum for a vb6 question. I did, i did post the same inquiry in vb6 forum and hoping to get answers. I really need this resolve asap. I been stuck for a week now due to this issue. Please help Anyhow it's an antique and useless.

You've taught me everything I know but not everything you know. I will say like Monkeyboy, VB6 will not work successfully on Window7.

Yes it will. I run a VB6 executable as part of my desktop. I don't mean the executable, I mean the program VB6 Pro. I hear you. Likewise, CodeBase is a better choice than Location, since it doesn't also include the path. Add a comment. Blue Toque Blue Toque 1, 13 13 silver badges 23 23 bronze badges. In the case of click-once deployment, will the Process method return a useful result? I am not entirely certain, but I think the Process method will get the name of the clickonce launcher process in much the same way as for a web app it would get the IIS worker process.

MainModule edit Another way might be to use Environment. Steven Sudit Steven Sudit Steve must be Process. That's not entirely correct: you have a choice between getting the FileName or the ModuleName. ModuleName Gets the main module for the associated process. Depending on what you need, that may be more useful. Rowland Shaw Rowland Shaw I didn't downvote you, but you might notice that RRUZ provided th is answer before you did. Ah, But I'd included a link to the documentation, which is why I kept my answer up and also why he beat me by a few seconds — Rowland Shaw.

Fine, I'll upvote you to neutrality. And it garners another random down vote? Very odd. There's nothing actually wrong with your answer.



0コメント

  • 1000 / 1000