1. Joined : Mar 2016
    Posts : 49
    Windows 10 Pro
       24 Jul 2016 #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 System SpecsSystem Spec

  2.    24 Jul 2016 #2

    What code are you using?
      My System SpecsSystem Spec


  3. Joined : Mar 2016
    Posts : 49
    Windows 10 Pro
       24 Jul 2016 #3

    Samuria said: View Post
    What code are you using?
    The closest answer I can come up with is DOS!
      My System SpecsSystem Spec

  4.    24 Jul 2016 #4

    I meant what is in the batch file
      My System SpecsSystem Spec


  5. Joined : Mar 2016
    Posts : 49
    Windows 10 Pro
       24 Jul 2016 #5

    Essentially:
    "c:\documents\wp documents\wp file.wpd"
    "c:\program files\program.exe"
      My System SpecsSystem Spec


  6. Joined : Oct 2014
    Posts : 330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
       24 Jul 2016 #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 System SpecsSystem Spec


  7. Joined : Oct 2014
    Trnava
    Posts : 1,738
    Windows Home x64 (Home per choice)
       25 Jul 2016 #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 System SpecsSystem Spec


  8. Joined : Mar 2016
    Posts : 49
    Windows 10 Pro
       25 Jul 2016 #8

    TairikuOkami said: View Post
    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 System SpecsSystem Spec


 


Similar Threads
Thread Forum
Looking for a program to batch resize .png files.
I use Photoshop for .jpg files, but it can't seem to do .png. What programs can do this?
Software and Apps
Batch File or App to Disable and Then Re-Enable Recent Files in QA?
Hello, everyone, I am using the most current preview build of Windows 10. (Loving the Fast Ring.) I have a question about clearing the Recent Files section of Quick Access, in File Explorer. I know how to clear and reset the Recent Files list...
Software and Apps
Solved Batch files won't run, open editor instead
Somehow (most likely my fault) .bat files have defaulted to opening my text editor (UltraEdit) instead of executing. I took all the file associations out of UltraEdit and re-started - no change I followed internet advice to remove ...
Software and Apps
I need to create a batch file to convert my iThmb files
How do I create a batch file to convert all of my iPod Photo Cache all at once to jpeg. I have SmartIV ImageZipper Image Converter 1.0.2. I have read how to use other software to do this but I can't figure out the command with this software. I have...
Software and Apps
Batch Rename Deletes Files
Hey all, I just upgraded to Windows 10 last night, and I've been playing around with the new File Explorer. One thing I tried was the batch rename function (by which I mean just selecting multiple files and clicking "rename"). I quickly realized...
Performance & Maintenance
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 12:24.
Find Us
Twitter Facebook Google+



Windows 10 Forums