No such file or directory when using Execute custom remote command in Winscp.com
I just understood the problem myself. I have give wrong statement
call "./!" /root/upload/config/File1.bat
correct statement is:
Thanks Martin. I am facing another problem which I have stated below. I will raise the same in a new thread also.
I am automating the process of editing a properties file with sed command. The below command will be available in the File1.bat
sed -i '/old/c\newvalue' /path/path/filename.properties
Then I will invode Winscp.com and run the call batfilename will edit my properties file. But when I run the code (ie call /root/upload/config/File1.bat ), file editing is not successful. I get no such file or directory. If I open the .bat file via winscp.exe editor and make some change then save it and close it and then if I execute the bat file manually, it is succeeded.
Not sure how to fix this issue.