Maxim
03-15-2007, 04:58 AM
Hi,
I need some help with progress bar problem
This coding I attach is the current coding that I used.
And I think it's not effective..
I have to call
"DlgProgressBar.Step(CTRL_PROGRESS_BAR_01)
File.Copy(_SourceDrive.."\\test\\ab.exe", myfolder.."\\test",true, true, false, true, nil);"
everytime for each kind of files i want to copy..
i do need some assistant on this uneffectiveness..
Code:
myfolder = SessionVar.Expand("%AppFolder%");
DlgProgressBar.SetRange(CTRL_PROGRESS_BAR_01, 0, 26);
DlgProgressBar.SetStep(CTRL_PROGRESS_BAR_01, 1);
Folder.Create(myfolder.."\\test");
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ab.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ac.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\\ad.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ae.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\af.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ag.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ah.exe", myfolder.."\\Resource", true, true, false, true, nil);
I need some help with progress bar problem
This coding I attach is the current coding that I used.
And I think it's not effective..
I have to call
"DlgProgressBar.Step(CTRL_PROGRESS_BAR_01)
File.Copy(_SourceDrive.."\\test\\ab.exe", myfolder.."\\test",true, true, false, true, nil);"
everytime for each kind of files i want to copy..
i do need some assistant on this uneffectiveness..
Code:
myfolder = SessionVar.Expand("%AppFolder%");
DlgProgressBar.SetRange(CTRL_PROGRESS_BAR_01, 0, 26);
DlgProgressBar.SetStep(CTRL_PROGRESS_BAR_01, 1);
Folder.Create(myfolder.."\\test");
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ab.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ac.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\\ad.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ae.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\af.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ag.exe", myfolder.."\\Resource", true, true, false, true, nil);
DlgProgressBar.Step(CTRL_PROGRESS_BAR_01);
File.Copy(_SourceDrive.."\\test\\ah.exe", myfolder.."\\Resource", true, true, false, true, nil);