You are here: PSPad forum > English discussion forum > how to run batchfile in place without going outside of editor?

how to run batchfile in place without going outside of editor?

#1 how to run batchfile in place without going outside of editor?

Posted by: av930 | Date: 2022-01-20 06:18 | IP: IP Logged

Hello. I am newbie to PSPad.
I usually write batchfile in my work.
Is there any way to run batchfile directly in editor?

I know Notepad++ has this kind of functions to run it.
Please don't recommend to use notepad++ for this use.
I have moved PSPad for this private use.

From JK.
Thanks in advanced.

Options: Reply | Quote | Up ^


#2 Re: how to run batchfile in place without going outside of editor?

Posted by: pspad | Date: 2022-01-20 06:23 | IP: IP Logged

Hello

You can run your batch directly from PSPad.
In the highlighter settings / compiler you can set your batch, catch output into PSPad log window e.t.c.
See the help and examples for compiler settings

Options: Reply | Quote | Up ^


#3 Re: how to run batchfile in place without going outside of editor?

Posted by: vbr | Date: 2022-01-20 08:23 | IP: IP Logged

Hi,
you can set the "compiler" for batch files e.g.:
C:\Windows\System32\cmd.exe
(or whatever is appropriate in your case)

If you open some batch file in PSPad, you can go to the respective settings for this type via menu: Settings: Highlighters settings
There is a section Compiler in the settings window

the recommended setting according to the helpfile is e.g.:
Compiler: C:\Windows\System32\cmd.exe
Parameters: /K "%File%"

if you want to see the output in PSPad, check the respective option:
[x] Capture program output window

(it is also possible to set a logfile, or other options)

More details can be found in the helpfile as mentioned:

PSPad - Menu Help: Help (the chm file in the program folder)
Sections:
Menu description: Settings menu: Highlighter settings: Compiler Settings
with the example:
Menu description: Settings menu: Highlighter settings: Compiler Settings: Compiler examples:: MS-Dos Batch language

If you set the highligter for all files of this type, you can call the current open batch via
File: Compile (Ctrl + F9)

(Additionally, you can set similar options individually in the tools panel, possibly when different parameters are needed for multiple purposes:
File: View: Tool panel (Ctrl + F2)
under the tab - Favourites - "Star" icon: Tools (right mouse - context menu) ...)

hth,
vbr

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR