I'm trying to write a batch file where every file (%1) that is dropped onto it is processed by BRC
- Code: Select all
c:\brc32.exe /DIR:"%~dp1" /PATTERN:"%~n1" /REPLACECI:"#n:#new" /EXECUTE
example with variable content
%1 ... c:\testdir\test#n.txt
%~dp1 ... c:\testdir\
%~n1 ... text#n.txt
this works fine but only for files like "test#n.txt"
If the file contains spaces like "this is a test (2009) #n.txt"
BRC does not rename anything
Any ideas? Thanks!