Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2007
    Posts
    34

    Grin progress bar... how to use with exemple... pls

    Hy programmers...
    I have a project that is in 98% finished. This part with progress bar I do not know how to introduce it in script...
    I have some files which I have renamed running a dos command file through a .cmd in a folder. After that I have to check the existence of those files renamed so that I can delete the original. Until here everything is ok. But because computer has a latency in copy process of many files, i have to replace it with a progress bar that show me the proces of command file.
    How can i do this?

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Ditch the batch file / dos copy -- copy it via lua and use callback function to display the progress...


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Oct 2007
    Posts
    34
    Quote Originally Posted by jassing View Post
    Ditch the batch file / dos copy -- copy it via lua and use callback function to display the progress...
    That's my problem, I said it!!!!!
    How can i do this? i don't know how...

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Check the help file... it's pretty good at explaining the use of callback functions & File.Copy() with it...

    Give it a go & post your code if you're having trouble.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Oct 2007
    Posts
    34

    ok, Jassing...

    files = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "001, 002, 003, 004, 005, 006, 007, 008 |*.001; *.002; *.003; *.004; *.005; *.006; *.007; *.008; *.009; *.010; *.011; *.012; *.013; *.014; *.015; *.016; *.017; *.018; *.019; *.020|", "", "dat", true, false);
    if (files[1]~="Cancel") then
    for i, v in files do
    if (File.DoesExist(v)) then
    File.Copy(v, "C:\\", true, true, true, true, nil);
    StatusDlg.Show(MB_ICONNONE, false);
    end
    end
    end
    This is one of my scripts... I want to copy some files that have that extensions (001, 002, 003, etc) to "C:\" directory. It seems that with "StatusDlg" function that i used like in exemple of Help, after the files are copied, it's stuked!!! And i have to terminate my application by closing it from Task Manager!

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Show the statusdlg before you do the copy
    hide the statusdlg after you do the copy


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  7. #7
    Join Date
    Oct 2007
    Posts
    34

    oh...

    Quote Originally Posted by jassing View Post
    Show the statusdlg before you do the copy
    hide the statusdlg after you do the copy
    Oh... Thanks, i didn't know that...

Similar Threads

  1. Pls help - Progress bar hep running a program
    By pokemon1 in forum AutoPlay Media Studio 7.5
    Replies: 3
    Last Post: 09-12-2008, 12:12 PM
  2. Help needed with my progress bar.
    By TheProg in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 06-11-2008, 05:11 PM
  3. Skinned Progress Bar!
    By screwed over in forum AutoPlay Media Studio 7.5
    Replies: 1
    Last Post: 04-30-2008, 09:28 AM
  4. Progress bar while executing batch file
    By StealthShadow in forum Setup Factory 7.0
    Replies: 3
    Last Post: 10-25-2005, 09:59 PM
  5. Progress Bar...
    By tealmad in forum Setup Factory 7.0
    Replies: 14
    Last Post: 02-05-2005, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts