1.    24 Jul 2016 #1
    Join Date : Mar 2016
    Posts : 119
    Windows 10

    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 ComputerSystem Spec
  2.    24 Jul 2016 #2
    Join Date : Jul 2016
    Crewe Cheshire
    Posts : 1,384
    windows 10

    What code are you using?
      My ComputerSystem Spec
  3.    24 Jul 2016 #3
    Join Date : Mar 2016
    Posts : 119
    Windows 10
    Thread Starter

    Quote Originally Posted by Samuria View Post
    What code are you using?
    The closest answer I can come up with is DOS!
      My ComputerSystem Spec
  4.    24 Jul 2016 #4
    Join Date : Jul 2016
    Crewe Cheshire
    Posts : 1,384
    windows 10

    I meant what is in the batch file
      My ComputerSystem Spec
  5.    24 Jul 2016 #5
    Join Date : Mar 2016
    Posts : 119
    Windows 10
    Thread Starter

    Essentially:
    "c:\documents\wp documents\wp file.wpd"
    "c:\program files\program.exe"
      My ComputerSystem Spec
  6.    24 Jul 2016 #6
    Join Date : Oct 2014
    Posts : 357
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64

    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 ComputerSystem Spec
  7.    25 Jul 2016 #7
    Join Date : Oct 2014
    Trnava
    Posts : 2,737
    Windows 10.4 Home 1709 x64

    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 ComputerSystem Spec
  8.    25 Jul 2016 #8
    Join Date : Mar 2016
    Posts : 119
    Windows 10
    Thread Starter

    Quote Originally Posted by TairikuOkami 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 ComputerSystem 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 00:34.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums