Difference between revisions of "ISSession:FileRedirect (Command)"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
== Operation ==
 +
FileRedirect works by performing a simple text replacement of the path+filename the application is attempting to open, with your provided snippet. You may replace all or part of the path. Slashes should be forward slashes ("/"), and will be normalized prior to replacement.
 +
 
== Syntax ==
 
== Syntax ==
 
{{CMD-DR|FileRedirect|Advanced|Intermediate|Intermediate|Advanced}}
 
{{CMD-DR|FileRedirect|Advanced|Intermediate|Intermediate|Advanced}}
 
FileRedirect <-list|-remove <original filename>|<original filename> [new filename]>  
 
FileRedirect <-list|-remove <original filename>|<original filename> [new filename]>  
 +
 
== Forms ==
 
== Forms ==
 
*FileRedirect -list - lists all redirected files
 
*FileRedirect -list - lists all redirected files
Line 14: Line 18:
 
  -------------------------
 
  -------------------------
 
  'bob.dat' => 'tim.dat'
 
  'bob.dat' => 'tim.dat'
 +
 
===Redirect from one file to another===
 
===Redirect from one file to another===
 
*FileRedirect User.Dat User-John.dat
 
*FileRedirect User.Dat User-John.dat
 
;Output
 
;Output
 
  File 'User.Dat' redirected to 'User-John.dat'
 
  File 'User.Dat' redirected to 'User-John.dat'
 +
 +
===Redirect all directory access ===
 +
Assuming the application is opening files under C:/users/username/AppData/Local/PRODUCER\GAME/d_program files_producer_game/, and we want to append some value to this
 +
*FileRedirect "AppData/Local/PRODUCER/GAME/d_program files_producer_game/" "AppData/Local/PRODUCER/GAME/d_program files_producer_game_${CharName}"
 +
;Output (assuming ${CharName} is "foo"
 +
File 'AppData/Local/PRODUCER/GAME/d_program files_producer_game/' redirected to 'AppData/Local/PRODUCER/GAME/d_program files_producer_game_foo'
 +
 
===Remove a FileRedirect===
 
===Remove a FileRedirect===
 
*FileRedirect -remove User.Dat
 
*FileRedirect -remove User.Dat

Revision as of 22:08, 7 May 2013

Operation

FileRedirect works by performing a simple text replacement of the path+filename the application is attempting to open, with your provided snippet. You may replace all or part of the path. Slashes should be forward slashes ("/"), and will be normalized prior to replacement.

Syntax

Command Difficulty Rating
FileRedirect
Usage Advanced
Level of Understanding Intermediate
Computer Savvy Intermediate
Logic Advanced

FileRedirect <-list|-remove <original filename>|<original filename> [new filename]>

Forms

  • FileRedirect -list - lists all redirected files
  • FileRedirect -remove <original filename> - removes a file redirection
  • FileRedirect <original filename> [new filename] - redirects from original file to new file

Examples

List redirected files

  • FileRedirect -list
Output
Inner Space redirected files
-------------------------
'bob.dat' => 'tim.dat'

Redirect from one file to another

  • FileRedirect User.Dat User-John.dat
Output
File 'User.Dat' redirected to 'User-John.dat'

Redirect all directory access

Assuming the application is opening files under C:/users/username/AppData/Local/PRODUCER\GAME/d_program files_producer_game/, and we want to append some value to this

  • FileRedirect "AppData/Local/PRODUCER/GAME/d_program files_producer_game/" "AppData/Local/PRODUCER/GAME/d_program files_producer_game_${CharName}"
Output (assuming ${CharName} is "foo"
File 'AppData/Local/PRODUCER/GAME/d_program files_producer_game/' redirected to 'AppData/Local/PRODUCER/GAME/d_program files_producer_game_foo'

Remove a FileRedirect

  • FileRedirect -remove User.Dat
Output
File 'User.Dat' redirection removed

See Also