lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> %~f0 seems to do the job

Neither %~f0 nor "%~f0" works correctly if filespec contains spaces.
Move your file to C:\Program Files\hello.bat and try to run this:
"c:\program files\hello" one two three
Batch file starting, but not lua script.

"if exist" works fine in all situations  ;-)