Using Batch files to perform sequential tasks


  1. Posts : 815
    Windows 10
       #1

    Using Batch files to perform sequential tasks


    Hi,

    I think I used to do this all the time but that was a long time ago.

    I want to open a Wordperfect (WP) document then run an executable program, the WP file opens fine but the executable won't run until I close the WP file. Any clues?

    Regards,

    Jim
      My Computer


  2. Posts : 6,906
    windows 10
       #2

    What code are you using?
      My Computer


  3. Posts : 815
    Windows 10
    Thread Starter
       #3

    Samuria said:
    What code are you using?
    The closest answer I can come up with is DOS!
      My Computer


  4. Posts : 6,906
    windows 10
       #4

    I meant what is in the batch file
      My Computer


  5. Posts : 815
    Windows 10
    Thread Starter
       #5

    Essentially:
    "c:\documents\wp documents\wp file.wpd"
    "c:\program files\program.exe"
      My Computer


  6. Posts : 353
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       #6

    Change your bat file to use the start command, essentially like this:

    start "c:\documents\wp documents\wp file.wpd"
    start "c:\program files\program.exe"
      My Computer


  7. Posts : 5,174
    Windows 11 Home
       #7

    Interesting, I use it like this, otherwise it will just open CMD window and that is the end of it.

    start "" "c:\documents\wp documents\wp file.wpd"
    start "" "c:\program files\program.exe"
      My Computer


  8. Posts : 815
    Windows 10
    Thread Starter
       #8

    TairikuOkami said:
    Interesting, I use it like this, otherwise it will just open CMD window and that is the end of it.

    start "" "c:\documents\wp documents\wp file.wpd"
    start "" "c:\program files\program.exe"
    Thanks! The extra pair of quotes got it.:)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 03:09.
Find Us




Windows 10 Forums