123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|490|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Project request

Fri, 20 Feb 2009, 20:12
JL235
I have a request. Can someone please build a small application for me. I don't have anything on my machine that can build stand alone .exe's, don't want to install any because it's such a small machine and it's a really small and trivial app. So I'm wondering if someone else is willing to do it for me.

Specification:
  • Needs to be a stand alone .exe (no other files required except the run document).
  • opens a file in the same folder called 'run', reads each line and then runs the line as a command in Windows.
  • The line should be skipped if:
    • it contains only whitespace
    • starts with a hash (#) symbol
  • If the file does not exist then a relevant error message should appear.
I'm planning to use this to startup Java applications so they look to the user like a .exe. I can also add any startup code through calling VBScript files.

Anyone interested?
Sat, 21 Feb 2009, 03:06
Afr0
Hmmm
Runs the line as a command in Windows?
Please be more specific. I might do this as an excersize in C++

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Sat, 21 Feb 2009, 03:30
Jayenkai
Any reason why this won't just work as a .bat? Most of the Java proggies I've seen come with a bundled bat file..

-=-=-
''Load, Next List!''
Sat, 21 Feb 2009, 04:40
JL235
Afro Runs the line as a command in Windows?
If the file contains:

It will run the VBScript file and then run the java program after.

I dunno what library it's in for you to call it in C++, but for VBScript you can use run in WScript and with a .bat you can use call. In Blitz I believe it's also called run.

Jayenkai Any reason why this won't just work as a .bat?
.exe files are more common and normal. It helps to make whatever it's calling look like a conventional native Windows app.
Sat, 21 Feb 2009, 05:34
Jayenkai
Bat to EXE Converter

Online Version

Some folks have been wary of it but it doesn't appear to have done anything dodgy, so far..


-=-=-
''Load, Next List!''
Sat, 21 Feb 2009, 15:04
Jayenkai
I don't have anything on my machine that can build stand alone .exe's, don't want to install any because it's such a small machine and it's a really small and trivial app.


I'd imagine the online bat converter would do the trick.

-=-=-
''Load, Next List!''
Sun, 15 Mar 2009, 00:42
JL235
For the record I have since implemented this in FreeBasic.