Copy file to machine if folder found

I’m trying to get a script to work to copy a file to a remote machine to a specific directory. The directory could be under several main pathways, could I use regex to search for the directory and if exists would copy file to location.

submitted by /u/emergence008
[link] [comments]

Leave a Reply