Robert Inzinger:
--------------------------------------------------------------------------------
If I try to start pspad from command line like

c:>pspad *.bat

the editor opens a new file and not all bat-Files
Is there a setting to change this 
behavior?--------------------------------------------------------------------------------


Not to my knowledge, but here is a batch file which will change this behavior
and produce the results you desire. It works on my system with Windows XP
Professional.


@echo off
:: filename: PSP.CMD
:: This batch file must have CMD.EXE somewhere on the PATH

if not exist "c:Program FilesPSPadPSPad.exe" goto no_pspad
if "%1" == "/?"   goto help
if "%1" == "{S}"  goto shell
:: ELSE

:: The START command lets you begin PSPad in a separate window and
:: releases the command line at the cmd prompt to accept additional
:: commands. If you would rather have the command prompt "locked"
:: until you terminate the PSPad application, comment out the next
:: line by using "::" and uncomment the line directly below it.
start "newPSPAD" /PGM cmd /V:ON /C psp.cmd {S} %*
:: cmd /V:ON /C psp.cmd {S} %*
goto end

:shell
for %%f in ( %2 %3 %4 %5 %6 %7 %8 %9 ) do set MYPSPARMS=!MYPSPARMS! %%f
:: echo DIAG - parameters: %MYPSPARMS%
"c:Program FilesPSPadPSPad.exe" %MYPSPARMS%
goto end

:help
echo PSP.CMD - allows PSPad to accept multiple parameters on the
echo command line and load all the files into PSPad. Requires CMD.EXE.
echo You can load up to 8 wildcard filenames at once.
echo.
echo Syntax: psp abc* def*.bat *.txt
echo.
echo Switches accepted by PSP:
echo                /r or /R       Open in Read-Only mode
echo                /h or /H       Open in Hex mode
echo                /123           Open and move cursor to line #123
goto end

:no_pspad
echo ERROR! - PSPad must be at this location:
echo "c:Program FilesPSPadPSPad.exe"
echo Quitting PSP.CMD ...

:end


Hmmmm.... this message editor squashes embedded spaces. No <PRE> tags are
supported, I guess. Anyway, the code works and should do what you want on a
Windows XP/2K/NT system.

--
Eric Pement

-- 
<http://forum.pspad.com/read.php?2,31163,31179>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem