First I'll tell you what I think you're saying you want, to make sure we're on the same page.
It sounds to me like you want to have it setup so you can input:
And have your batch script run 4ed.exe with that filename like this:
| start "a" "C:\4coder\4ed.exe" -W filename.cpp
|
Is this what you're looking for? If not ignore everything I say next and clarify for me.
What you need to do for that is use "%*" I am not sure what that thing is called but what it does is take ALL of the parameters after the batch script and repeat them. So your script would look like this:
| start "a" "C:\4coder\4ed.exe" -W %*
|
This also means if you ever want two or more files to work, that is possible too:
| 4coder f1.cpp f2.cpp f3.cpp
|
would execute the command:
| start "a" "C:\4coder\4ed.exe" -W f1.cpp f2.cpp f3.cpp
|
ALSO, I should point out that in some versions of 4coder the mechanism that organized the load time files gets broken. I am not sure if it working perfectly in 4.0.21, so your script might be working but still look broken depending on that factor.