Hello!
Yesterday I asked this post, but I am still having problems when I try to run this .bat file from my java project.
@echo off
set filename=%1
echo %filename | sed 's/\([A-Z]\)/ \1/g';
The call I do is:
String param = "myparam";
ProcessBuilder pb = new ProcessBuilder("myFile.bat", param);
But what myFile.bat does is just print %filename
, so it doesn't take the real value of the param I send.
What I am doing wrong?
Thanks in advance
I tried also
@echo off
set filename=%1
echo %filename% | sed 's/\([A-Z]\)/ \1/g';
With the same result, now it prints %filename%
.
Maybe some problems in the call??