-
create
C:\RedirectConfig.yaml
like as follows:rules: - type: filepath last: true source: "%UserProfile%\\Documents" destination: ".\\Documents" exclude: - "desktop.ini" - type: filepath last: true source: "%UserProfile%\\Pictures" destination: ".\\Pictures"
-
set
C:\RedirectConfig.yaml
to environment variablePATHREDIRECTOR_CONFIG_FILE
-
run target process with PathRedirector dll injected.
with InjectExec:
set PATHREDIRECTOR_CONFIG_FILE=C:\RedirectConfig.yaml
InjectExec.exe notepad.exe PathRedirector64.dll