Search found 2 matches
- 09 Jun 2017 10:52
- Forum: DOS Batch Forum
- Topic: Add prefix to existing files using UNC path
- Replies: 2
- Views: 3304
Re: Add prefix to existing files using UNC path
Someone suggested I try this code but it failed with 'LFNFOR' is not recognized as an internal or external command, operable program or batch file. LFNFOR On FOR %v IN (`\\server.com\hostfiles\Export\Semaphore\assignActivities-*.dat`) DO REN %v prefix%v I'm running from command line, can't be a batc...
- 09 Jun 2017 10:05
- Forum: DOS Batch Forum
- Topic: Add prefix to existing files using UNC path
- Replies: 2
- Views: 3304
Add prefix to existing files using UNC path
I am trying to add a prefix to existing files within a UNC path. For some reason my code is changing the first character of the file name instead of appending it Existing file names: assignActivities-20170609100439.dat assignActivities-20170609094939.dat Desired file names: SassignActivities-2017060...