You need to put the file name at the end of the command.
In the Run(F5) dialog, try this:
runscript $(FULL_CURRENT_PATH)
If you want to test it out, you could put a & pause
at the end, just to see if it worked.
You could also tweak your script a bit so that every file doesn't test for each extension, by using the dreaded GOTO
command with file extension labels:
@echo off
GOTO %~sx1
:.pl
perl "%~f1"
GOTO end
:.rb
ruby "%~f1"
GOTO end
:.php
php "%~f1"
GOTO end
:end
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…