i need to execute a .lnk file in vb.net (lnk file that points at an exe file).
how can i do?
shell("path/file.lnk")
don't works
thx you for help.
You didn't indicate your platform, but on Windows 7, use Process.Start to launch an application using a .lnk file:
Process.Start(pathToLink)
Related
I'm developed window application from node-webkit, and I make it to .exe file.
i try
copy /b nw.exe+myapp.nw
and i try to build use nw-builder but it same result.
To perform this .exe file, it need some files(nw.pak, some Dlls).
I want to excute this exe file standalone.
Please let me know any method to excute .exe file standalone
[UPDATE]
I solved this issue.
i found packaging program Enigma Vitual Box and this program help packaging .exe file, nw.pak and other files.
You can use Inno Script App to make an installer for the .exe file. I do use it and it makes sense.
I have a batch script that I have loaded into my solution. How can I reference this from the VB.NET application I am building to execute it?
Rather than
Shell.execute("C:\Users\Me\Desktop\application.bat")
How can I call the application.bat that is packaged within my solution?
Get the startup path of your application using Application.StartupPath and append it to your .bat file name.
i have a exe file , which must be opened with a command line
start a.exe /stext d:/alpha.txt
to save a file in d drive. I tried creating a batch file and calling it in vb but the batch dosent executes the exe file, so is there any direct method to add command line in vb to run the exe file to generate the alpha text.
Use this:
System.Diagnostics.Process.Start(Process Name)
When I am running
myProcess = Process.Start("something.exe")
and want to start it using button it doen not find the file - i need to execute it from the same folder where application is how can i do that? Thank you.
System could not find this file - but it is there . in the same folder as application.
Using Visual Basic 2008 Express
When I add there this:
System.Diagnostics.Process.Start(System.IO.Path.Combine(My.Application.Info.DirectoryPath, "something.exe"))
It is working thanks for help - FIXED :-)
You should try something like
Process.Start(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "notepad.exe"))
When running from VS the folder with your application is the bin/Debug or bin/Release. The program should be there.
Another option is to add the path to the program extracted from Assembly.GetExecutingAssembly().GetName().CodeBase
How do I run a Flash exe file within a Window/Form in a VB.Net Project?
I do not have the SWF file so will have to use the exe file I have.
Maybe you can extract the swf file from the exe flash projector?
There are lots af utils that can do that, like this one.
add flash executable file to your project as embedded resource,
during the run time extract to temp folder run the project. at form closing delete the temp older flash executable file.
hope it helps.