Qbasicnews.com

Full Version: How create a install program with a progressbar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ai hef a question "Can your make a install program to copy files : with qbasic is that possible : (((can you find that code))












------------------------------------------------------------------------------------
:Main Country is: NL ( Netherlands )
I think that you need to use SHELL commands, i.e. SHELL "COPY C:\a.txt C:\test\a.txt". "COPY" is a DOS command, and also a BAT command I think. Any operating system that allows you to use DOS or BAT will work.
Quote:I think that you need to use SHELL commands, i.e. SHELL "COPY C:\a.txt C:\test\a.txt". "COPY" is a DOS command, and also a BAT command I think. Any operating system that allows you to use DOS or BAT will work.



can you make that with a progressbar ???
so like as a proffesional install program
Making a nice progress-bar is going to be a bit difficult. In order for it to be meaningful, you would need to know the time or the length of each file being copied, to move the bar accordingly.

An alternative would be to print a message on the screen after each file is copied. Example: for 8 files to be copied:
... File AAA has been copied ... 1 of 8
... File BBB has been copied ... 2 of 8
etc.
*****
I'd go with what Moneo has suggested.
Quote:A professional QB program.


--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

PROGRESSBAR SUBROUTINE This is a standalone progressbar !!! rountine

INSTALLATION PROGRAM UPDATE QB?? -PB
INSTALLATION UTILITY QB?? -PB
INSTALLATION PROGRAM PB

This is a powerbasic source code bas files not Qbasic Cry



can you create a exe file with this bas files ???
Quote:This is a powerbasic source code bas files not Qbasic Cry

If you understand Basic, then you should be able to learn enough from the code to write your own.
Pages: 1 2