Search found 3 matches
- 26 Jul 2017 13:02
- Forum: DOS Batch Forum
- Topic: loop thru filenames in a directory
- Replies: 4
- Views: 4135
Re: loop thru filenames in a directory
this change worked. ::Rem @For /f "delims=" %%a in ('Dir /s /b /A-D "%MasterFolder%\*.%Ext%"') Do ( @For /f "delims=" %%a in ('Dir /s /b /A-D "%MasterFolder%\CIPROD*.%Ext%"') Do ( I only want to pick up files like this: catalog backuppiece 'K:\oradata\recovery...
- 26 Jul 2017 12:18
- Forum: DOS Batch Forum
- Topic: loop thru filenames in a directory
- Replies: 4
- Views: 4135
Re: loop thru filenames in a directory
Sorry this is what the files look like: catalog backuppiece 'K:\oradata\recovery\rman\ciprod\CIPROD_CIPROD_2055_16_20170725_950301792.BAK'; catalog backuppiece 'K:\oradata\recovery\rman\ciprod\CIPROD_CIPROD_2055_17_20170725_950301792.BAK'; catalog backuppiece 'K:\oradata\recovery\rman\ciprod\CIPROD_...
- 24 Jul 2017 13:54
- Forum: DOS Batch Forum
- Topic: loop thru filenames in a directory
- Replies: 4
- Views: 4135
loop thru filenames in a directory
I have a directory with filenames that I want to create a file from. the files are names below: file1 file2 file3 ... I want my final product to look like this: catalog backuppiece 'Q:\dir\file1'; catalog backuppiece 'Q:\dir\file2'; catalog backuppiece 'Q:\dir\file3'; and so on... any ideas? New to ...