Spaces in filename causing trouble

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Spaces in filename causing trouble

#16 Post by Ed Dyreen » 16 May 2015 16:59

Code: Select all

IF "%~1" == "" (

       call :launchdirect

) else IF /I "%~n1" == "menu" (

       call :launchmenu
)

IF "%~2" NEQ "" call :extconvert

echo.all done.
PAUSE
exit 0

:launchdirect
ECHO. launchdirect
PAUSE
exit /B 0

:launchmenu
ECHO. launchmenu
PAUSE
exit /B 0

:extconvert
ECHO. extconvert
PAUSE
exit /B 0

Post Reply