Results 1 to 5 of 5
  1. #1
    StoneHeart's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed

    Changing File Path On Runtime

    Is is possible to change running file file path on runtime?

    Let say i have file a.exe and when i run it and use GetModuleFileName it return c:\a.exe.

    So i want to change the return value of running file a.exe GetModuleFileName to a custome one like c:\b.exe.

    Possible or not possible?

  2. #2
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,875
    Reputation
    124
    Thanks
    604
    My Mood
    Cynical
    Hook it or just make your own function..

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Why would you want to do this? o-o
    Ah we-a blaze the fyah, make it bun dem!

  4. #4
    Kallisti's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,019
    Reputation
    52
    Thanks
    376
    My Mood
    In Love
    wait, what?

    未来が見えなくて怖いから
    未来が見えてしまって悲しいから
    目を閉じて優しい思い出に浸ってしまう




  5. #5
    StoneHeart's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    My Mood
    Relaxed
    Quote Originally Posted by Hell_Demon View Post
    Why would you want to do this? o-o
    Well basically, i had an app which i want to inject to another process, the app has settings which are stored on the loader as EOF data. If i inject to loader as a host, the app can read the EOF data but if i inject to another process the app cant read the EOF data which are stored on the loader. Hope you guys got what i mean. I don't know how to solve this issues =\

    What i was thinking is like, inject app to other process, change file path of injected app to loader file path(this one i dont know how to do), injected app use GetModuleFileName -> return path to loader (if i dont change the file path, GetModuleFileName will return the file path of the process whose being injected), injected app open file (loader) -> read pe info -> find EOF = Settings data retrieved.

    That is what i wanna do...



    *Yea, my English sucks XD

Similar Threads

  1. [Release] iSoul's CF File Downloader [Changed Files]
    By iSoul in forum CrossFire Spammers, Injectors and Multi Tools
    Replies: 13
    Last Post: 02-15-2012, 04:37 AM
  2. Model File Paths
    By Vindicator209 in forum Vindictus Help
    Replies: 1
    Last Post: 10-17-2011, 07:58 PM
  3. [Help Request] File Paths
    By Tataria in forum Vindictus Help
    Replies: 27
    Last Post: 08-22-2011, 06:32 AM
  4. TuT] How to Change File Attributes from Read only to Normal [TuT
    By XGelite in forum Visual Basic Programming
    Replies: 1
    Last Post: 11-19-2009, 01:08 PM
  5. File paths
    By MinimalKills in forum Visual Basic Programming
    Replies: 3
    Last Post: 11-15-2009, 12:23 PM