Search a file in C:\ and if exist search some other files in C:\
This, i want to search in C:\ if a file exist.
if its exist then search in c:\ other files and upload them to a network folder.
anyone have some tips on how to do this?
any help its greatly apreciated
I need more detail on the files you want to copy. Do the files you want to copy have any commonalities such as are they all in one folder, same extension, etc.
What target do you want? Does each source need to go to a unique target? IE same subdir or do you need a unique subdir for each source.
the basic line is this
if exist C:\somefile.log (xcopy C:\ProgramData\Quest\KACE\*.gz c:\temp /q /y)