Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with Batch File

    I have a Icon on the Windows Desktop that the operator presses as she leaves the office for the day to run a backup and jetcomp procedure.

    The backup.bat procedure maintains four generations of the back-end, then performs a JetComp on the production back-end.

    The backup.bat procedure is as follows:

    Copy

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Try using:

    START /WAIT jetcomp.exe -src:F:BuildBuildBe.mdb -dest: F:BuildBuild_Be.mdb
    Legare Coleman

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Hi Legare

    I

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    I'm afraid I don't have any more ideas. I don't know how jetcomp.exe works and was just guessing that using START /WAIT would help. It sounds like either:

    1- Jetcomp.exe is spawning a separate task to build the file and then exiting in such a way that the /WAIT does not recognize that the spawned task is still running.

    2- Jetcomp.exe is building the file which ends up in RAM buffers, and when Jetcomp.exe exits the buffers are still being written to the disk.

    I don't know any way around either of those except to have the batch file wait for a fixed time long enough for the process to finish.
    Legare Coleman

  5. #5
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Hi Legare

    Is there a windows scripting language I should be looking at?

    Is there a command I can use to see if Build_Be.mdb is finished, not being used by another program?

    Was able get by with the following:

    :Loop

    echo off
    cls
    echo.
    choice /c:3X /t:X,360 Processing Backup, Detect and Repair of the Building Database, Please Wait
    if errorlevel 2 goto DoneWithJet
    if errorlevel 1 goto Loop

    oneWithJet

    Thanks for your help

    John

  6. #6
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: Problem with Batch File

    Even if you you reverse the 2 commands you will probably find that pkzip won't have finished before jetcomp has started.

    Why not take out the pkzip command and put it in a special start of day task that is run.

    Pat <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  7. #7
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Pat

    I'm just trying to automate a jetcomp then a zip of the results in one backup.bat file

    John

  8. #8
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    If this was 10 years ago and DOS 5.0, I could probably come up with something. However, it has been too long since I wrote batch files.
    Legare Coleman

  9. #9
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Is there another way to accomplish this (batch file processing) on Win 98?

  10. #10
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Problem with Batch File

    Sorry to butt in this late, John, but I'm wondering why you don't like some variation on Pat's suggestion. You've said the operator clicks an icon to start the process when she leaves for the day. Why not put the PKZIP command, all by itself, in a scheduled Windows task and set it to run at some time late, late at night or in the wee hours of the morning, before the operator comes to work?

  11. #11
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Hi All

    That would work.

    However I'm really looking for a MS-DOS batch file replacement, should I be looking at Windows Script Host, VBA Script, etc to accomplish a controllable batch process?

    John

  12. #12
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Problem with Batch File

    Jeez, I don't know anything about WSH or Visual Basic or whatever. I can tell you about a very powerful language for Windows called WinBatch, but I don't think you'll like the PRICE - $100. They even have a compiler which will turn scripts into executables, but I won't even tell you how much that costs!

  13. #13
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Hi Legare

    When I run:

    START /WAIT jetcomp.exe -src:F:BuildBuildBe.mdb -dest: F:BuildBuild_Be.mdb

    on Windows 98 [Version 4.10.1998], Proceeds to next command before jetcomp is complete

    on Windows 98 [Version 4.10.2222], Waits until jetcomp is complete before proceeding

    Any thoughts?

    John

  14. #14
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Upgrade to Version 4.10.2222?

    I don't remember when the /Wait parameter was added to the START command, so the early version of 98 may not have had it.
    Legare Coleman

  15. #15
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem with Batch File

    Hi Legare

    What is eaiset way to get an update from

    Windows 98 [Version 4.10.1998]

    to

    Windows 98 [Version 4.10.2222]

    Thanks, John

Page 1 of 2 12 LastLast

Posting Permissions

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