/build/static/layout/Breadcrumb_cap_w.png
10/25/2019 212 views

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

0 Comments   [ + ] Show comments

Comments


All Answers

1

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)

Answered 10/28/2019 by: SMal.tmcc
Red Belt