Launching Multiple Files From Just One EXE Possible?
Nov 18, 2010
When I click a button to Shell something, instead of having to specify where the exe (or whatever file it might be) is, i was wondering if I could combine it with VB to make it something like this. Shell ("Internet Explorer.exe"). Also, have VB save the file so anywhere I take that single exe file i made with VB, the exe file I want to shell goes with me. So that way I can launch multiple files from just one exe file and not have any directories to worry about.
View 7 Replies
ADVERTISEMENT
Apr 22, 2012
I am trying to create a sort of code library in visual basic where the form displays a list box of certain project files in vb that i have made in the past and when clicked, launches the .exe files of those visual basic program project files.I know it does not work the same way as writing/ reading text files to vb and it seems as simple as 'on click, launch .exe of selected string "vb program 1" and so on. I am having trouble getting started on this one. Im sorry I cannot provide any starter code bc I only have a basic understanding of in/out text files which wont work the same way with .exe
View 1 Replies
May 15, 2010
I have a dual-monitor setup. When I launch the main program, I need to make sure that it always launches in "Screen 1". I have a button within the program that launches another fullscreen window and I need this to always launch in the next available screen (read: not covering the main program window)I am using the System.Windows.Forms.Screen class to try to accomplish this and have have had about 80% success. I can successfully test for multiple monitors (which enables the button). When they click it, I can get it to always launch in the second screen. The problem I'm encountering while testing is the main program is launching in Screen 2, so the second window covers it.
Here's what I'd like to accomplish ultimately: I would like to always launch my program in Maximized stated (and disable resizing,
minimizing/maximizing is ok, just not double-clicking titlebar to resize) in the primary monitor (where Taskbar is being displayed). Then, when the button within the program is pressed, it launches the new window in the NEXT available monitor in Maximized stated.
View 15 Replies
May 6, 2011
I'm using VB.Net to launch multiple command line window (same exe file) through Process.StartInfo. I would like to have those windows running at background without hanging main UI thread that launch them and at the same time able to get the output of those external window to show progress at progress bar.Here is a summary of what I'm trying to achieve but need further advise which way is feasible
- launch multiple exe command through Process.StartInfo
- don't want the external exe to hang my main UI thread
- need to get feedback from external exe to update progress bar which is placed at main UI thread
View 2 Replies
Feb 23, 2010
This started happening randomly yesterday. When I press F5 to test my project, an old build of the program (circa yesterday afternoon) launches. No changes (and I've tried in a few different files) are reflected in the project. However, and this is truly perplexing, if I go to Build --> Build from the Menu bar, the output .exe in the /bin/release/ directory DOES include all the recent changes.
[Code]...
View 2 Replies
Jun 18, 2012
I have a website that has highly granulised access and hence requires many web.config files. The problem is I would like to trim the menu so that only certain users will have access to certain folders. I have enabled trimming and setup roles in the sitemap, however when I access the page the menu is not show, as I am authorized to view the default page which is not in a subfolder. When I type the url of a page in sub folder's I have access.
How should I handle this:
A site map for each web.config file - don't know how this will work Removing the sub web.config file to only use a single one
View 3 Replies
Dec 10, 2009
I know this is out there and probably illogical but I was wondering if it was possible to take multiple picture files and compact them into one file.... and then retrieve them from the program later? Way to combine any amount of image files into one file
Module Module1
Sub combine()
Dim img1 As New Bitmap("i1.jpg")
[CODE]...
View 6 Replies
Mar 30, 2010
I'm developing an application to help law enforcement retrieve and analyze logs and other files left by the use of Pidgin (a multi-protocol messenger client). Right now I'm nearly done, but I want to add the ability to search chat logs for user-defined words or phrases and I don't even know where to begin.
Chat logs are stored as html documents in a folder/sub-folder/sub-folder/sub-folder fashion, where each sub-folder can have dozens of sub-folders inside of it, and the final sub-folder can have dozens if not hundreds of chat logs. If anybody could point me in the right direction, I'd be very grateful.
(Also, this is the first program I've written since about 2005, and I'm essentially teaching myself VB as I go. If you'd like to see what I've cobbled together so far, you can find the program here.)
View 1 Replies
Aug 18, 2011
I'm trying to copy multiple excel source files into one excel file. My current code is working only for 3 source files..If more than 3 files are there, it doesn't copy the data but creates blank work sheet in the output excel file. Lets say I have a source folder with 5 excel files. Each workbook contains one worksheet with data. It copies upto 3 worksheets along with data into output excel file.
Lets say excel1 contains A as work sheet, excel2 contains B as work sheet ,excel3 contains C as work sheet ,excel4 contains D as work sheet ,excel5 contains E as work sheet .Now my output excel file should look like..OutputExcel with A, B, C, D, E along with respective data.But my current code is giving output as A,B,C worksheets along with respective data but its creating blank sheet1,sheet2 in place of D & E.
SSIS Script Task Vb.Net Code:
Public
Sub Main()
Dim filePath
As
String =
[code].....
View 1 Replies
Feb 26, 2009
I'm using VB.Net 2005 Pro and have created an .msi for my app using the built-in installation deployment project.When the installation is running however (or at the end of the process) I need it to run another .msi which I'll include in my distribution.How would I go about that? I've tried adding a custom dialog to the installer but that won't run another .msi.
View 3 Replies
Apr 6, 2012
i am having difficulty in lunching an application using vb the application i am trying to launch is a "MicroAppache" a distro of the Appache http server Background When the application is launched, it loads also some dll files and other dependencies.When i use this vb
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("C:UsersvidhuDesktopwebserverinDebugMicApamapache.exe")
End Sub
to launch the exe. it doesnt load. instead it throws an error the it cannot find its dependencies. BUT When i place the vb app which launches the appache exe in the same directory as the appache exe. it works fine! It seems that the mapache.exe tries to find its depenancies in the directory where the launcher is and not in the directory he is in.Example If the launcher is located in:
C:launcher
and the Apache Server is located in
C:launcherapache
it will not work because it tries to find the other files it needs in
C:launch
If the launcher is located in:
C:launcherapache
and the Apache Server is also located in
C:launcherapache
it Will work
View 2 Replies
Jul 26, 2010
I can create a shortcut using this code:
Dim sFolder As String, sTarget As String, sAppName As String
Dim oShell As New WshShell
Dim oShortcut As WshShortcut
[Code]....
View 5 Replies
Dec 14, 2011
This is probaly a simple question, I am not a programmer I am a systems admin. I am trying to launch a application from a visual basic script. Everytime I run the script looks for the application in whatever folder the script is sitting in. If ut the script in the folder where the executable is it works. Unfortunatley this script need to run from users temp directories. What am I doing wrong'
' *****Declaring variables*****
Option Explicit
' Comment the next line out if you are not getting this to work and you need to debug.
[code]....
View 2 Replies
Mar 8, 2009
Okay, I know how to launch a file with its associated app:Process.Start("File.mp3")And I know how to launch an executable: Process.Start("program.exe")This is the best I've been able to come up with for starting an executable with parameters:Process.Start("program.exe", "@ 'List of command line parameters'")Will that work?
View 2 Replies
Mar 12, 2010
I am writing a basic little program. Amongst everything, my program will let you install printers remotely, To cut a long story shot I don't want to use the rundll32 shortcut to install as you can only remove the printer using rundll32 again which I don't want.
The way I wanted to do it is create a VBS script and execute it remotely using psexec. This didn't work for some reason, locally the script works fine but when executing it remotely the script runs but doesn't perform any of the actions inside the script.
The only other option I can think of is launching the VBS via WMI. I have done a bit of research and I cant seem to find any VB code that does anything similar.
View 2 Replies
Sep 24, 2010
I was wondering if someone could help. I have a little vb.net program, an exe, a pdf and a pps all burned on a DVD.My vb.net program will autorun and I have command buttons to open each of the other items from the DVD.I can open all items if I use the proper path but not all rom drives are the same. I have searched for this a lot and there are a lot of inguiries regarding the same but none of the solutions seem to work.I have a work around for D:\ and E:\ drives:
Try
Process.Start("D:\MyPresentation\BHW.pps")
Catch
Process.Start("E:\MyPresentation\BHW.pps")
End Try
I use this for each command button.I have tried Process.Start(Application.Startuppath & "\MyPresentation\BHW.pps") to no avail.
View 9 Replies
Feb 25, 2009
I'm using VB.Net 2005 Pro and have created an .msi for my app using the built-in installation deployment project.
When the installation is running however (or at the end of the process) I need it to run another .msi which I'll include in my distribution.
View 3 Replies
Apr 2, 2012
my folder dialog windows isnt opening. its odd cause its been working for a long time.app closes soon as i click on my button
'Open Folder Dialog
Dim folderDlg As New System.Windows.Forms.FolderBrowserDialog
Dim selectedFolder As String
[code]....
View 7 Replies
Aug 24, 2009
I was looking to launch a program, such as MS Word, by pressing a button on particular form. Is there a way for me to do this?
View 1 Replies
Jan 27, 2011
I created an application in Visual Studio 2010 - visual basic. It works great on computer1 and computer2, but on computer3 and computer4 it crashes when its launched. It says that the program has crashed and more information can be found in 3 files named WER.But in these files i can not see an error.
View 8 Replies
Nov 19, 2010
I have a vb.net application that I compiled and all, I took the EXe and all and placed it on another pc that has only visual studio express on it.
When I open my .exe I get a message saying No debugger has been found, no Jit Debugger has been specified I can either select retry to find a debugger or click on cancel to forget about the debugger.
If I press cancel, my application launches correctly without any problem.
View 1 Replies
Jul 2, 2012
I know how to create a file, but would it be possible to create multiple files? the number I would like to create is determined from the number in a textbox, i.e., if the textbox had 2 then I would create 2 files, if it had 5 then I would create 5 files.
My code to create file
System.IO.File.WriteAllText("C:\Test.txt", "")
View 2 Replies
Jun 10, 2012
I am trying to associate multiple files with my app i have done associating files but when i try to open multiple files app open just one file, to open the file iam using this code in form load event
For Each arg In My.Application.CommandLineArgs
open_File(return_rtb, arg)
Next arg
And the second problem is myApp is single instance app how to catch if user double click on a file while myApp is running like form load event for first time.
View 1 Replies
Jun 14, 2012
Making a system to check for files existing in a network (for our tv address system, pawn shop stuff)Anyway, the command1 checks if d1.txt exists, then d2.txt and fills out the boxes, Instead of 10000 if statements?
Below is example of my current code
Private Sub Command1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Command1.Click
If My.Computer.FileSystem.FileExists(Text1.Text + "d1.txt") Then
d1.Checked = True
[code]....
Basically it's a bunch of check boxes, that check if the corrosponding file exists
View 5 Replies
Jan 11, 2010
How do I combine multiple files into the one file with a new extension. No need to be compressed. So I avoid Zip or similar solutions. (Actually don't want to add third party solutions into my application.)
View 13 Replies
Aug 13, 2009
In the cmd prompt, I can copy multiple files into one file, and I was wondering, how would I do that in VB 08?
View 10 Replies
Jul 10, 2009
I know you can copy a file using:[code]The only way I know how to copy multiple files is by using a for loop, but if you choose to display a dialog box, you get a dialog box for every file you copy instead of one showing the progress of all the files.So with that said, is there any way to copy multiple files, and only have one dialog box displayed?
View 2 Replies
Dec 15, 2004
I was trying to do something like this (that worked with the Kill method of VB6) System.IO.File.Delete(OrderInfo.ParentFolderPath & "NJ0*.DTA") because there are several files that start with NJ0 and end with .DTA
[Code]...
View 3 Replies
Aug 18, 2010
I've come up with a way of downloading multiple files specified in a txt doc held on a web server. The problem is it only downloads files not folders, im using the following from the codebank to download the files currently:
Try
mCurrentFile = GetFileName(URL)
Dim WC As New WebClient
WC.DownloadFile(URL, Location)
RaiseEvent FileDownloadComplete()
Return True
Catch ex As Exception
RaiseEvent FileDownloadFailed(ex)
[Code] .....
Can I modify this to allow downloading of folders too or will I have to use a completely different method?
View 2 Replies
Jan 10, 2011
I'm trying to code a program that can download multiple files at once (on different threads of course). I have created a custom listview component that will allow me to add a progressbar directly to it. What my real question is, how can i take a url given by the user from an input box and create a new webclient to handle the downloadasynchronously
View 2 Replies