creating short icon in windows for qb programms $ code hidin

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
malaspiga

creating short icon in windows for qb programms $ code hidin

Post 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
User avatar
Michael Calkins
Veteran
Posts: 76
Joined: Tue Apr 05, 2005 8:40 pm
Location: Floresville, Texas
Contact:

Shortcut

Post 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.
Bring on the Maulotaurs! oops...
I like to slay Disciples of D'Sparil...
User avatar
Michael Calkins
Veteran
Posts: 76
Joined: Tue Apr 05, 2005 8:40 pm
Location: Floresville, Texas
Contact:

SYSTEM

Post by Michael Calkins »

P.S.
Also use the SYSTEM statement to end your program, instead of END.
Bring on the Maulotaurs! oops...
I like to slay Disciples of D'Sparil...
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post 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
"But...It was so beutifully done"
Post Reply