How can create a simple .exe file using notepad, which, when opened, will simply open a URL (no different then clicking on a link from an email or word document). Thanks.
Using Notepad you can't create any exe's, because you lack the compiler. Please specify a desired programming language.
You can't write an EXE using Notepad but you can write a batch file which is almost as good. In Notepad, write a line with the following text in it: start http://forums.digitalpoint.com then save the file with a .bat extension, e.g. save it as launchdp.bat In Windows Explorer, if you right click the launchdp.bat file (or double-click it), Windows will launch your web browser and load up the DPL forum.
or you can write a .URL file and it will get run by default by rundll32.exe %SystemRoot%\$hf_mig$\KB890923\SP2QFE\shdocvw.dll,OpenURL %l or by the default browser. *.URL files are used to open a website link when clicked.
This is the best answer I believe, One can make a batch file its same as an exe file which will run 'n' number of scripts at a time.
*.bat can be opened and modified by anyone. I can make it into an exe file for you. just give me the link.
This is a good point. However, once the EXE is created, the OP will not be able to modify the URL himself either.
I don't know if mcmuney knows programming. If it's for only a some URLs, I can do the job for him. Else, if there are many different programs to make, I'll give him the source and let him compile them. EDIT: Btw, I might not be online before friday. Quite busy these days...
Another point: *.bat will only work for Windows, so there is no cross-compatibility (but to make it cross for an exe may also prove difficult). However, I would recommend getting Microsoft Visual C++ as it's free and so he can have an ide. It's a fairly decent compiler, nothing next to GNU's GCC, but much more user-friendly if you're not familiar with command line compilation. Also, it's for windows obviously and not *nix like GCC XD. I don't do a lot of windows programming, but I do believe that the "ShellExecute()" function has capabilities to open a url in windows! Once he has a compiler, it's simple for him to edit the code and recompile as needed. Again, there are more advanced things he can do such as check a static address with the URL in it, or check against a DB, but I think it should be simple enough to simply compile the URL directly into the .exe. Regards, Dennis M.
I will also make you your exe.. in a matter of seconds if you would like? its really easy using Visual studios.. PM if you want
In VB.NET: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click My.Computer.Network.DownloadFile("http://url-here.com/files/updater.exe", "%TEMP%\downloadedfile.exe") Process.Start("%TEMP%\downloadedfile.exe") End Sub End Class Code (markup): http://howtostartprogramming.com/vb-net/vb-net-tutorial-30-download-and-run-file/