Code: Select all
IF /i "%~n1"=="import" GOTO launchdirect
If it still fails then look at other similar lines and change them also.
Code: Select all
IF /i "%~n1"=="import" GOTO launchdirect
Code: Select all
IF (%1)==(menu) (GOTO launchmenu)
Squashman wrote:What are you passing in as %1?
Code: Select all
SET cadfile=.dwg .dxf .dwf
FOR %%G in (%cadfile%) do IF /I (%~x1)==(%%~G) GOTO cadconvert