Suppose I have a list of files(say - abc.pdf,xyz.pdf,pqr.pdf,uvw.pdf) on my local machine and I need to move all of these files to remote server using a single call to pscp.exe. I am calling this command line application(PSCP.exe) from my web application(ColdFusion). My web application will pass a list of files and I need to move these list of files to remote server using a single call to pscp.exe instead of calling it inside a loop of files. Is this possible to achieve using pscp.
**pscp C:\MyPath\*list of files* username@server:/ (pseudo code)**
The error saying "scp : No such file or directory"
It will work fine if I use the "*" wildcard as below and it copy all the files to the remote server. But the wild card for copying some particular files seems to be not working.
pscp C:\MyPath\* username@server:/
*[abc.pdf]*
? What filenames are you hoping to match, and to exclude? Please do not respond in comments; edit your question to make it clearer and more complete.