.exe File Not Running?
Jun 2, 2011I am unable to run VB.Net exe file on another computer.On that computer there is no VB.NET application. how can i make that computer for running .exe file.
View 1 RepliesI am unable to run VB.Net exe file on another computer.On that computer there is no VB.NET application. how can i make that computer for running .exe file.
View 1 RepliesI am trying to write a Windows Script that will allow me to monitor the following: That 2 x seperate but specific processes within Component Services "Running Processes" list are currently running and have not reset within the past hour. If I already know the PID, then I can retrieve the CreationDate (I assume which I can use to check for restarts? or is this the actual process creation/installation date) for each specific process, however if a restart occurs the PID will change and my script needs to know what the new PID is without me telling it!
[Code]...
I am trying to download a file off my web server (easy) but the file its downloading is the updated version of the file running. I finally was able to program my automatic update software the program simply downloads a .txt file from my web server, reads it, and if the the version = (new version here) then download. If not, then go to another form. The problem I am getting though, is when the version is outdated, the file will go to download the new .exe and it gets and error saying "File already exists"
[Code]...
I am trying to build a simple AutoUpdate application using VB.NET. It was quite simple. That is, I put the newest ZIP file in my hosting site, and then download it using WebClient.DownloadFileAsync. After it get downloaded, I extract it using [URL]
But each time I run the unzip.exe using Process.start, Windows 7 always show Open File Security.
Is it possible for VB.NET to bypass such security restriction?
Btw, this is my code of using WebClient.DownloadFileAsync, in case any one google about it and landed on this page :
Public Class AutoUpdate
Dim installationFolder As String = "C:Program Filesxyzabc"
Dim updateFileNameTarget As String
Private Sub btnStartUpdte_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStartUpdte.Click
[Code]...
I am trying to create a sort of 'personal code library' in visual studio 2010 where the form displays a list box of certain project files in vb that I have made in the past and when selected, a button can be pressed that launches the .exe files of those visual basic program project files or displays the source code (.vb file)
[Code]...
I have an old project which i wanted to work on. It is a .vbw file (a .frm file also).Now i have microsoft visual studio 2010. But it is not running that old project.
View 1 RepliesI have a server that turn on by executing the following DOS command: java -"Xmx4096M -Xms4096M -jar server.jar" in a .bat file. This works when i open the .bat file myself. Now i want to make a program in VB that will detect if my server is off, and if so executes the .bat to start the server back up.I'm using the "shell" command in VB to open the location of the .bat and it seems to work, the .bat file opens then closes right away and doesnt do anything. I took a screenie to see what it said and it says
View 5 RepliesI'm looking for a way to delete a file while it's already running.So let's say I'm running an app, and I need to delete itself, how can I do so?
View 5 RepliesI have a program I am making in VB.NET [ 2010 ], and I can get the BAT file I want to run start, but it's not in 'Elevated Mode' - Is there a way to accomplish this easily? This is the code I have to run the BAT file, which needs to be 'Run as Administrator':
[Code]...
My USB stick is over crowding and I can't make enough folders to organize it.
So I want to make an application that would store all those folders, files, applications, songs, etc.
So What Im thinking of is this but not sure how to do it I can add the files to My.Resources but I don't know how to run it like .exe files or some other files
So Im going to make a TabControl and have like 5 or 10 Tabs On each Tab like lets say Programs, I will put labels of the program name. I click it and that program will run ( the program will be inside the main application)
Well i have developed VB code in which i want to call an external application.I know this can be done using shell command i.e.
" shell("C:\abc.exe") ". But when i execute this statement the file actually runs.This is not what i am looking for, I am looking for a piece of code which ensures that the file can run successfully without executing it
im v ery new to VB, im designing a game launcher within VB and everything is very simply done. I have 4 buttons currently, 3 of them link to websites and work a charm, but what i need is a 4th button to launch a game via a .cmd file. I tried by using simple commands like:
Shell("C:Program Files (x86)NCsoftAtomixatomix.cmd")and Process.Start("C:Program Files (x86)NCsoftAtomixatomix.cmd")
Both of these options worked in executing the .cmd but it caused an error within it. The cmd works perfectly fine when executed manually from its directory but when i try and execute it via the launcher i get an error.
[Code]...
Just tried it with a .bat file also getting the same issue of not being able to find the bin32
i am new in visual basic. net programming. i am facing problem that when i made a file in vb.net and run it on same computer than it runs fine, but when i copy it to another computer where vb.net or .net framework is not installed then it doesn't work. can somebody help me how to run that file without install .net framework
View 7 RepliesThis is rather hard to explain but, I want to find a way to copy a file to another directory (where the file has already been executed, and cannot be access using normal means).I'm having a really hard time with this, it was easier in vb6, it basically unhooked itself from the executable after it started
View 5 Repliesi face a problem in checking file condition.I wish to create a program that can check the condition file continuously while the program is running.[code]If I suddenly remove the file, it cant show a message File not Exist or if I suddenly receive a file and place at the folder,it cant show me a message File already Exist.How can I modify my code to continuously checking the file condition while the program is running.
View 1 RepliesI'm trying to read a log file for a game so I can extract certant info from it and track my stats as the game is running, but I keep getting access denied error for the log file. I would also like to have the log read only after it has been changed but the event handler never fires. I'm assuming it has to do with the access error. Can someone give me an example of how to watch a text file that's in use by another program and read it after it changes. The code I have works if I open the file in notpad, change it then save it but not when the game is running. I did it once before for the same game but lost my code and there are other programs that parse the log file so I know it can be done.
View 1 Repliesi insert a exe file into my resource and i can write it in hard but i dont want any one can see this filei should copy the exe file into memory and run it from memory
View 9 Repliesim working on a disk cleaner in VB.net 2008. im running into a unauthorized file exception.
[Code]...
I made a proejct that runs sql command to datagridview and than export it to csv file, everything going fine but i got line break problem.
Here my export code:
Dim filePath As String = "C:FULLWorkcsvdbslimit.csv"
Dim delimiter As String = ";"
Dim sb As New StringBuilder()
For i As Integer = 0 To DataGridView1.Rows.Count - 1
Dim array As String() = New String(DataGridView1.Columns.Count - 1) {}
[Code] .....
I have a batch file on my desktop.how can i run it with vb???
View 1 RepliesIf I have an flv file how can I display the flv to play inside 2010? I tried the web browser function which will display a function like loading the page, but I am only interested in playing the file itself, is there a way to load a specific player that will load the flv file?
View 4 RepliesI Need vb.net sample code to run SQL Server Report.
- Would be cool if you could provide:
-vb.net code
- sample showing use of parameters
- switching data sources
- setting credentials
- running a local report using a rdl file ie report file
- running a remote report using reporting services server
I have this problem in VB.NET in c#, I have this project where I need to run a batch file, which is easy enough. But my problem is I need to display everything that shows up on the batch file, in the cmd window, in a textbox, now, this code opens the file no problem:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false
proc.StartInfo.FileName = "C:\Users\jwoow\Desktop\Server\run.bat";
proc.Start().ToString();
but it doesn't move the code over to the textbox, this code transfers the last displayed line, but not the entire thing of the batch file and it also closes the cmd window, i need it to stay open:
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
[code]....
the batch file is for a server, it displays the amt of users on it (updates ever 2 minutes) and shows different events taken by the users. so it is constantly updating.
In Windows 7 if I launch Task Manager and select a process (eg:Notepad.exe) I can right click on this and select "Create Dump File".
This creates a dump of the file to my hard drive.I would like to do this programmatically.
Current frame from Swf running file in Winapp?
View 1 RepliesI'm trying to do a setup project with VS2008 for my VB .NET application. I would need to create a text file into the installation directory based on the answers the user who installs the program gives. Idea is that I need to have the installation path variable in a text file so that I can read it. And also some other directory specifications too.
I could do the following:
Write the wanted information to the window registry and after the installation is ready, create another application that is run at the end of the installation to create these files.
How to Retrieve the existing vb controls from a running exe file [code]Application 2 should Retrieve the existing vb control names from a running Application1..Application1 may consists of textbox, combobox, radio button,checkbox,button etc..I am presently using Microsoft Visual Basic 2008 Express Edition
View 1 RepliesI made a project in Visual Basic 2008 Expression Edition. My project works perfectly on the computer on which I made it. But when I make the executable file (.exe) and try to run the project on any other computer it doesnt work. I get the following message Project has encountered a problem and needs to be closed.
I followed the procedure provided by the Beginner Developer Learning Center to make the executable file. [URL]
I have Windows 7 installed on the computer on which I made this project.
I keep getting this error: Creating an instance of the COM component with CLSID {6D7AE628-FF41-4CD3-91DD-34825BB1A251} from the IClassFactory failed due to the following error: 80010001.
We think it has to do with the fact that we are on company computers that have limited access. If that is the problem, is there a way around it?
How to Retrieve the existing vb controls from a running exe file
For example i am having 2 applications
Application1-unknown and an Exe file
Application2-my application
[Code].....