Monday, 9 September 2019

coldfusion - Is there any wildcards to copy a list of files from local to remote using PUTTY PSCP

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:/

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...