I m trying to automate the deployment process wherein i follow the following steps-
1.Run a Ant Script to build a .ear file
2.Login to the unix server using putty(SSH Connection) providing the login credentials.
3.Then i enter the superuser credentials for write permissions.
4.Rename a existing file in the server and then transfer the file from the local system to unix server.
My 1st thought was PSCP or PSFTP,but I have no idea how to provide these super user credentials.
I want a command prompt script so that i can save it as .bat file.Plzz help