asked on
ASKER
ASKER
ROBOCOPY "\\server\sharename\engineering\client\IK" "c:\destinationfolder" *50160-340-P-1125* /E /DCOPY:T
ASKER
set SrcDir=\\server\sharename\engineering\client\IK
set TgtDir=c:\destinationfolder
set CopyPattern=*50160-340-P-1125*
ROBOCOPY "%SrcDir%" "%TgtDir%" "%CopyPattern%" /E /DCOPY:T
for /f "tokens=*" %%a in ('dir /b /s /ad "%TgtDir%" ^| sort /r') do (
rd /q "%%a"
)
ASKER
ASKER
Visual Basic for Applications (VBA) enables building user-defined functions (UDFs), automating processes and accessing Windows API and other low-level functionality through dynamic-link libraries (DLLs). VBA is closely related to Visual Basic and uses the Visual Basic Runtime Library, but it can normally only run code within a host application rather than as a standalone program. It can, however, be used to control one application from another via OLE Automation. VBA is built into most Microsoft Office applications.
TRUSTED BY