Page 1 of 1

creating short icon in windows for qb programms $ code hidin

Posted: Wed Apr 06, 2005 5:33 am
by malaspiga
hie

how do i hide my code in my programs and also how do i create a shortcut icon in windows for my qbasic dos based programs .

write back to

malaspiga@mixedrace.com

Shortcut

Posted: Thu Apr 07, 2005 11:47 am
by Michael Calkins
You want a shortcut (PIF). Do you also want a batch file? Is so, point your shortcut to the BAT file, otherwise, point your shortcut at QBASIC.EXE. Either way, you probably want to use the /run switch.

sample batch program:
@echo off
c:\qbasic\qbasic.exe /run c:\mydir\myprog.bas

Or, the command line in you PIF:
c:\qbasic\qbasic.exe /run c:\mydir\myprog.bas

You can also edit the file associations for Windows, and add an action to run you program.
Why would you want to hide your code?
Regards, Michael.

SYSTEM

Posted: Thu Apr 07, 2005 11:49 am
by Michael Calkins
P.S.
Also use the SYSTEM statement to end your program, instead of END.

Posted: Thu Apr 07, 2005 1:57 pm
by Mitth'raw'nuruodo
I believe I already said this.

Goto RUN, then Click Make exe file

Now that will hide your code + you'll have an icon you can see in explore that you can create a shortcut from that if you click it you'll start the program w/out seeing the code. :D