Windows 10: Using Batch files to perform sequential tasks

Discus and support Using Batch files to perform sequential tasks in Windows 10 Software and Apps to solve the problem; 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... Discussion in 'Windows 10 Software and Apps' started by rboppy, Jul 24, 2016.

  1. rboppy Win User

    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

    :)
     
    rboppy, Jul 24, 2016
    #1
  2. Tryx3 Win User
    Tryx3, Jul 24, 2016
    #2
  3. Tryx3 Win User
    UAC prompt from batch runas administrator

    If you can change to running the batch file from a shortcut instead of the command line then you could solve the problem by setting that shortcut to requiring Admin [right-click on the shortcut, Properties, Advanced, Run as Admin]. The desired standard
    UAC prompt will then appear whenever the shortcut runs.

    If you start the batch file from Task scheduler then that can be made to co-operate with you. It normally refuses to run shortcuts but you can work around the limitation - see

    Use Windows 7 Task scheduler to run a batch file minimised and with a specific icon
     
    Tryx3, Jul 24, 2016
    #3
  4. Samuria Win User

    Using Batch files to perform sequential tasks

    What code are you using?
     
    Samuria, Jul 24, 2016
    #4
  5. rboppy Win User
    *HuhThe closest answer I can come up with is DOS!
     
    rboppy, Jul 24, 2016
    #5
  6. Samuria Win User
    I meant what is in the batch file
     
    Samuria, Jul 24, 2016
    #6
  7. rboppy Win User
    Essentially:
    "c:\documents\wp documents\wp file.wpd"
    "c:\program files\program.exe"
     
    rboppy, Jul 24, 2016
    #7
  8. DavidE Win User

    Using Batch files to perform sequential tasks

    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"
     
    DavidE, Jul 24, 2016
    #8
  9. Interesting, I use it like this, otherwise it will just open CMD window and that is the end of it. *Rolleyes

    start "" "c:\documents\wp documents\wp file.wpd"
    start "" "c:\program files\program.exe"
     
    TairikuOkami, Jul 24, 2016
    #9
  10. rboppy Win User
    Thanks! The extra pair of quotes got it.*Smile
     
    rboppy, Apr 5, 2018
    #10
Thema:

Using Batch files to perform sequential tasks

Loading...
  1. Using Batch files to perform sequential tasks - Similar Threads - Using Batch files

  2. use Task Scheduler to start batch file, minimized?

    in Windows 10 Support
    use Task Scheduler to start batch file, minimized?: I have already tried to find the solution using google, but literally none of them worked! At one point I edited the file/folder names, and changed the locations to those in the "solutions" but even that didn't work! You are my last hope! is there any way, any at all, you...
  3. File transfer sequential order

    in Windows 10 Network and Sharing
    File transfer sequential order: I have many large running actions of file transfers, is it possible to switch these to complete sequentially? Rather than all of them completing at the same time which slows down each individual action....
  4. Batch files for use in BSOD debugging

    in Windows 10 BSOD Crashes and Debugging
    Batch files for use in BSOD debugging: [img] Warning This thread is for use by the BSOD team ONLY, to store batch files that can be used to collect additional data, fix settings or anything else that is useful in debugging BSOD problems in Windows 10. [img] Information The way I see it working is the first post...
  5. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  6. Batch Files

    in Windows 10 Network and Sharing
    Batch Files: I want to make a batch file that will copy a specific folder from my USB stick to a folder on C:\ I want to know if it's possible to make a batch file that will take the folder from my USB drive no matter what the drive's letter is....
  7. Batch File

    in Windows 10 Support
    Batch File: I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For example we can call the folder test and it would be in documents on c drive. Every time we run the batch file it would create a...
  8. how to number files sequentially in file explore ?

    in Windows 10 Network and Sharing
    how to number files sequentially in file explore ?: how to number files sequentially in file explore ? I open my flash drive with 700 songs in it. How do I number the songs in sequence in file explorer ?...
  9. Problems automating a batch file with task scheduler

    in Windows 10 Support
    Problems automating a batch file with task scheduler: I want run this bat file from task scheduler @Rem %pf% expands to the right program location depending if it is x86 or x64 system @setlocal @set pf=%ProgramFiles% @if not "[%ProgramFiles(x86)%]"=="[]" set pf=%ProgramFiles(x86)% @Rem %macropath% expands to the demo...
  10. Start Batch File Minimized via Task Scheduler

    in Windows 10 Support
    Start Batch File Minimized via Task Scheduler: I have a batch file scheduled to run in Task Scheduler in Windows 10. The batch file runs on schedule, but it opens a full CMD window. I have tried entering variations on start /min in the Task Scheduler properties, but these seem to have no effect. The particular batch...

Users found this page by searching for:

  1. perform sequentially batch