You have to do this up front. WinSCP cannot do it for you.
I will get path in below manner
x.oracle.apps.xxtop.gar.webui
All the .(dots) should be replaced by / This should look like
x/oracle/apps/xxtop/gar/webui
Please help.
The whole winscp command looks as below.
"C:\Program Files\WinSCP\WinSCP.exe" /console /command "option batch on" "option confirm off " "open user:pass@x.com" "cd /u10/apps/xdev/xdev1/applmgr/apps/apps_st/comn/java/classes/x.oracle.apps.xxtop.gar.webui" "put C:\JDEV\jdevhome\jdev\myclasses\x\oracle\apps\xxtop\gar\webui\Xxgar.class" "close" "exit"