Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Darakath's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    1,548
    Reputation
    47
    Thanks
    3,231

    Faking the application directory?

    Is there any way to run a program as if it is in another directory?

    I just want to know, thx.

  2. #2
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    I don't understand your question, Could you say it in different words?
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  3. #3
    Darakath's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    1,548
    Reputation
    47
    Thanks
    3,231
    Quote Originally Posted by Mayion View Post
    I don't understand your question, Could you say it in different words?
    Is it possible to make the application think that it is running from a different folder?

  4. #4
    Mayion's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bed
    Posts
    13,504
    Reputation
    4018
    Thanks
    8,372
    My Mood
    Twisted
    Quote Originally Posted by Darakath View Post
    Is it possible to make the application think that it is running from a different folder?
    Programmatically?
    I do not use any type of messenger outside of MPGH.
    Inactive but you can reach me through VM/PM.










     

    Donator - 30 August 2013
    Battlefield Minion - 26 October 2013

    Blackshot Minion - 14 January 2014/16 September 2014
    Minecraft Minion - 7 February 2014/16 September 2014
    WarRock Minion - 23 February 2014
    League of Legends Minion - 21 March 2014

    Minion+ - 15 May 2014
    Other Semi-Popular First Person Shooter Minion - 8 August 2014
    CrossFire Minion - 23 October 2014
    Programming Section Minion - 13 November 2014
    Marketplace Minion - 7 December 2014

    Official Middleman - 7 December 2014 - 27 June 2015
    Moderator - 29 December 2014
    Project Blackout Minion - 10 January 2015
    News Force Interviewer - January 2015
    Steam Games Minion - 21 March 2015
    Dragon Nest Minion - 31 March 2015
    Publicist - April 2015 - 21 September 2015
    Global Moderator - 25 August 2015
    Super User - 13 August 2016



  5. #5
    Darakath's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    1,548
    Reputation
    47
    Thanks
    3,231
    Quote Originally Posted by Mayion View Post


    Programmatically?
    In any way possible?

  6. #6
    Grizzly's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Antarctica
    Posts
    715
    Reputation
    158
    Thanks
    1,634
    Just a shot in the dark here, because I don't understand what you're trying to say, possibly move it to the folder you want it to run from?


    If you're trying to ask if you can have a program running from one folder but have the computer think it is running from another, I'm not entirely sure that's possible. I'll do a bit of research and let you know if I find anything.

  7. #7
    Darakath's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    1,548
    Reputation
    47
    Thanks
    3,231
    Quote Originally Posted by Grizzly View Post
    If you're trying to ask if you can have a program running from one folder but have the computer think it is running from another, I'm not entirely sure that's possible. I'll do a bit of research and let you know if I find anything.
    Yes, and the program must think that it is running from the other folder too.
    Anything would be appreciated.

  8. #8
    Fucking Moron's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    I need smoke
    Posts
    5,529
    Reputation
    1371
    Thanks
    1,618
    My Mood
    Buzzed
    Quote Originally Posted by Darakath View Post
    Yes, and the program must think that it is running from the other folder too.
    Anything would be appreciated.
    Yes it's actually not that hard


    - - - Updated - - -

    Quote Originally Posted by Darakath View Post
    Yes, and the program must think that it is running from the other folder too.
    Anything would be appreciated.
    Yes it's actually not that hard


    - - - Updated - - -

    Quote Originally Posted by Darakath View Post
    Yes, and the program must think that it is running from the other folder too.
    Anything would be appreciated.
    Yes it's actually not that hard


    - - - Updated - - -

    Quote Originally Posted by Darakath View Post
    Yes, and the program must think that it is running from the other folder too.
    Anything would be appreciated.
    Yes it's actually not that hard

  9. #9
    Grizzly's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Antarctica
    Posts
    715
    Reputation
    158
    Thanks
    1,634
    Quote Originally Posted by Organized Chaos View Post


    Yes it's actually not that hard


    - - - Updated - - -



    Yes it's actually not that hard


    - - - Updated - - -



    Yes it's actually not that hard


    - - - Updated - - -



    Yes it's actually not that hard
    please share your wisdom then.

    - - - Updated - - -

    Quote Originally Posted by Organized Chaos View Post


    Yes it's actually not that hard


    - - - Updated - - -



    Yes it's actually not that hard


    - - - Updated - - -



    Yes it's actually not that hard


    - - - Updated - - -



    Yes it's actually not that hard
    please share your wisdom then.

  10. #10
    Fucking Moron's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    I need smoke
    Posts
    5,529
    Reputation
    1371
    Thanks
    1,618
    My Mood
    Buzzed
    Quote Originally Posted by Grizzly View Post
    please share your wisdom then.

    - - - Updated - - -



    please share your wisdom then.

    Vm me if you would like to know how
    Will get back to you guys

  11. #11
    Grizzly's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Antarctica
    Posts
    715
    Reputation
    158
    Thanks
    1,634
    Quote Originally Posted by Organized Chaos View Post



    Vm me if you would like to know how
    Will get back to you guys
    or you can just post here

  12. #12
    Fucking Moron's Avatar
    Join Date
    Mar 2014
    Gender
    male
    Location
    I need smoke
    Posts
    5,529
    Reputation
    1371
    Thanks
    1,618
    My Mood
    Buzzed
    Quote Originally Posted by Grizzly View Post
    or you can just post here
    Or not....

  13. #13
    Grizzly's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Antarctica
    Posts
    715
    Reputation
    158
    Thanks
    1,634
    Quote Originally Posted by Organized Chaos View Post


    Or not....
    Don't post if you don't have anything to contribute.

  14. #14
    Darakath's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    1,548
    Reputation
    47
    Thanks
    3,231
    Quote Originally Posted by Grizzly View Post
    Don't post if you don't have anything to contribute.
    He wants to rack his post count up.

  15. #15
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Yes it's possible. You just need to set the current working directory programmatically when your application starts. If you told me what language you were using I'd be able to give you a more concrete example.

    C#
    Code:
    System****.Directory.SetCurrentDirectory(@"C:\Users\FooBar\Example");

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help Request] The application failed to initialize properly (0xc000007b). Click Ok to terminate
    By 123patel in forum Combat Arms Help
    Replies: 2
    Last Post: 06-12-2012, 02:32 AM
  2. Replies: 0
    Last Post: 03-29-2012, 05:45 AM
  3. Need help locating a file in the main directory
    By darkpimp in forum Call of Duty Modern Warfare 3 Help
    Replies: 4
    Last Post: 12-20-2011, 11:36 PM
  4. Replies: 4
    Last Post: 02-27-2011, 07:13 PM
  5. Theres a way to fake the hshield update!!!
    By hi9110 in forum Combat Arms Discussions
    Replies: 24
    Last Post: 09-13-2009, 09:51 AM