How To Post An Executable Program
Oct 4, 2009I want to share an executable program that I was working on.
View 3 RepliesI want to share an executable program that I was working on.
View 3 RepliesI 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?
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 RepliesI 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 Repliesthis i want to make my program to be executable..but i dont know how to make when i go to the file the makeproject1.exe is greyed out...what is the problem on this.
View 2 RepliesI'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.
Ok, so I'm working with a team of people/programmers and we are all trying to explore the possibilities within Visual Basic 2008. As such, we are all working on our own programs at the same time, but all for one small organization. Well, I'm working on making an installer that will bascially do as follows:
View 4 RepliesI have a custom button in IE8 which starts up my program. Now what I wanted to do, was pass an arguement such as: 'myprogram.exe /ie'
From the IE8 button, and well my program will do rest from there. Now my program adds the button just fine, shows up fine, all that works. But each time i'd add an argument after my application path, IE8 would say it can't find the program. If you want to test this out, goto run, type in gpedit.msc, then 'User Configuration'->'Windows Settings'->'Internet Explorer Maintenance'->'Browser User Interface', and double click on 'Browser Toolbar Customizations'. And in the small window that pops up, is an option for adding custom buttons to IE. I was using this for testing purposes, since it was faster to edit a button here than in my program. When you add a button you choose the executable to link it to. But if you add any arguments after it, IE will simply not be able to find the program. Even if that same command works when you type it from 'run'.
So, now my question is, since apperntly you can't have any arguments in the button, is it possible to detect what executable starts your program? For instance, detect if iexplore.exe started up my program?
how to make my program installable to other pc? Can I have a simple procedures.
View 4 RepliesI 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 RepliesHow do you change the build executable image for your program? Right now mine looks like a blank form. I would like to add a custom image.
View 2 RepliesI would like to install a readme.txt file in the same All Programs folder as my application using ClickOnce deployment. The Build Action property is set to "Content" and the Copy to Output Directory is set to "Copy always" for this file. In the Application Files dialog box, Publish Status=Include for the file. After running setup.exe, the app is installed properly in the Start/All Programs/MBCI folder, but the readme.txt file is not there. Is the file installed somewhere else?
View 4 RepliesI am working on a relatively simple program in VB.NET. I am trying to make the installation process as simple as possible for the user.I know its possible to use the executable from the debug directory as a stand alone executable, but are there any drawbacks to this approach? For example, if the user does not have .NET on their machine, the program will not run. Is there a way to publish the program so it is self-contained in a single executable file?
View 4 RepliesI need to 'post' xml to [url]...
How can I accomplish this in VB.net?
i want add post in my vBulletin by my program
how i can't do that
It's probably the most basic of things, but all I can find is how to launch a program, and not with the interactions I desire. Any tips as to the terms to use to search for answers, or links to topics regarding questions similar to mine, would be very appreciated. I have a wealth of info to read through, but I could use your knowledge to save myself time.Here is what I am trying to do:
Use a Button (A) to Launch a Prompt where User Selects Directory Path to an executable Program. The Selection is to be Persistent after the initial selection (saved in a settings file i assume?), and the Selected Path (or just "programname.exe") is to be Displayed in a Text Field (B). Launch Selected and Indicated Program via a Launch Button (C)
how do make a program that allows me to post a quote out of a file and put it on todays quote and a new one will come up
View 2 RepliesI have a NameValueCollection in vb.net and I need to be able to iterate through it and create an html form that posts automatically to a 3rd party site.
I have this to go off of as an example, but I am not sure exactly how to do this from code behind and end up with an html page that actually posts.[code]...
I use Visual Basic.net to create a program that connects to several websites, logins, then post some data. I can't use the httpwebrequest, some java is required on those sites, so i use the webbrowser control.Now I created a form, some fields for input data and a submit button. The coding part is like this:
Code:
sub website1(vars)
'login here
'post some data
[code].....
The problem is that I can't control what happens after submit button is clicked. I need to pause or stop the process at any time. If I exit the program while processing, I can see that even if the window disappear, the program is still running!I tried to use a thread for this, but the subs only get called if I use begininvoke, or invoke on a starter thread.
i am trying to create a small program that will calculate the miles between to postcodes.The way im doing this is to fill out a webform for each postcode and collect the returned Long/Lat values (i will then calculate the miles from that)
This all works well until my program freezes with no error message. It's after the same number of records as well and I don't know why.[code...]
Over the last couple months I've created a fairly substantial program for a friend in vb 2008 express to deal with the management of a fantasy football league, for its data storage it uses mainly an sql server 2008 express database for all the data, however there are a couple of text files for some unrelated fixed values.
I have spent the last week or so putting some vague finishing touches on it so that I can give it to said friend to test for me. However after working perfectly fine for me for the duration of the construction and also working fine on a couple of computers I installed and tested it on, upon giving it to my friend I find that (after installing) as soon as he opens up any form which relies on database data it spits out an error akin to the following:
Exception Text:
System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
[CODE]...
Loaded Assemblies:
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4918 (NetFXspW7.050727-4900)
CodeBase: file:/Q:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
[CODE]...
I have used a combination of LINQ and SQL statements to query and and update the database, with LINQ for querying and SQL for the updating, due to this most of the database communication is done through a LINQ to SQL datacontext using the pre-generated connection string in my app.config file: <add name="FFL.My.MySettings.FFLv2ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\FFLv2.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
The only other time a connection string for the database is used is in an SQL execution function which uses the following: Dim connectionString As String = "Data Source=.\SQLEXPRESS;AttachDbFilename='" + Application.StartupPath + "\FFLv2.mdf';Integrated Security=True;User Instance=True"
The textfiles are also referred to using the 'Application.StartupPath + "folders/filename"' method
As for other details; I started this program on vb 2008 express but upon finding that the express version didn't have much in the manner of deployment facilities, downloaded a 90 day trial of visual studio 2008 pro to deploy the program as an msi install file. Operating system wise, I started the project on XP before converting over to Vista home premium + latest service pack (I think) which is what I've finished it on and am using currently, the 2 computers I successfully installed it on were both running XP SP3 and my friend runs a dualboot of Windows 7 and Vista (not sure what edition), he's tried it on both to no avail.
And for reference; to the above code/error, the database is called FFLv2.mdf and the project FFL.
The pre-requisites for my program (as highlighted by vb) are as follows:
.Net Framework 3.5 SP1
Windows installer 4.5
SQL Server 2008 express edition
I've tried changing the connection strings to specify a specific filepath, but that didn't help.
Having a problem with sending a file via HTTP post in vb.net. I am trying to mimic the following HTML so the vb.net does the same thing.[code]
View 4 RepliesI 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<edit on 10th March 2010.>
Changed thread type to QUESTION. I was then able to mark AS ANSWER the relevent post which now also immediately follows this post and so it is easier to find as suggested by forum user j2associates .
<edit> It is also my 3rd post in this thread, the 8th one up, of my posts, from the bottom ( for now ), as the forum format has changed yet again.I will leave the rest of this post( as is ) purely for historical reasons. I have been on these forums long enough to see 3 forum changes. <edit> 19th May, 2010> Link added to a video on the next line of text.
[code]....
I am a one man dev shop and need some outside opinions on how to approach this project.
I need to create a "post office" program that will send html emails thru the system.net.mail framework.
For each job submitted to the postoffice the app would need to read a user created html email string from the database, read a string of email addresses to send to and send out the emails based on a set processing time.
The first step would be to parse out the email addresses to find out how many emails it needs to send out and determine how many it would need to send per minute to complete the job in 20 minutes tops. I.e. if 1000 email addresses are submitted per job it would determine that it needs to send 50 emails per minute to complete the job.
The part I am stuck on is how I should queue the emails. If the app determines it needs to send 50 a minute should I only load up the first 50 on a timer event then get the next 50 queued up for the next timer tick? Or would it be better to load up all 1000 in a loop and build in some kind of wait time after it sends the first 50?
Im trying to create a software which can post into yahoogroups.I've done trying to log in yahoomail but my problem is when I am going to post in yahoogroups, I am turning back in to yahoo log in page.
Here's my code so far:
Quote:
Imports System.IO
Imports System.Net
Imports System.Text
[code]....
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 RepliesMy 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?
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 RepliesIs 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.