Results 1 to 20 of 20

Thread: moving the active exe

  1. #1

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    moving the active exe

    how do I make it so when the form loads, it relocates the program to another directory? i have no idea how to do this any help is appreciated

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: moving the active exe

    You could, but if you did, there would be no way for the program shortcut to work, plus any data files would have to be moved along with it. What are you trying to do, anyways?

  3. #3

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    Re: moving the active exe

    i dont want a shortcut or anything, since i have a lot of problems with my computer, i dont know why, i have to reinstall windows at least once a week and format hard drive, so i usually loose all my compiled files unless i back them up to my other hard drive, and it takes to long so with this it will automatically move them for me

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: moving the active exe

    You want to move just one program? You would still need a backup if you had to format.

    Why do you have to reformat every week? What are the symptoms that cause you to do that? Maybe you should post in the General PC forum, so we can help with that instead?

  5. #5

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    Re: moving the active exe

    i want to add the move code to the form load of program i make so i have them all

  6. #6

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    Re: moving the active exe

    so no one wants to help?

  7. #7
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: moving the active exe

    Quote Originally Posted by GarrettDori
    so no one wants to help?
    hey thats not true buddy!!!
    why not save the project to the back-up drive directly??
    Show Appreciation. Rate Posts.

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: moving the active exe

    I don't understand what you mean.... You want to move your EXE file when it starts? That can't be done, you can copy the EXE but moving it requires to also delete the origional file and you can't delete an EXE that is currently running.

  9. #9

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    Re: moving the active exe

    well, it would be called replacing the application i guess, because a friend made on that does it, and when i open it, Kerio personal firewall comes up and says "Replacimg Application" but the bad thing is, my friend wont tell me how

  10. #10
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: moving the active exe

    are you sure ur friend used visual basic to do so? it may copy the file then delete the other copy to the "illusion" that it was replaced is this firewall thing part of the program?
    Last edited by dark_shadow; Nov 9th, 2005 at 07:48 PM.

  11. #11
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: moving the active exe

    Sound like virus technology to me... File moving itself to hide from spying eyes.

  12. #12

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    Re: moving the active exe

    i know he used VB because thats all he knows, and he sent me a screen shot of the project with no code showing

  13. #13
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: moving the active exe

    Post the screen shot, so we can take a look at it, please.

  14. #14

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    Re: moving the active exe

    there wouldnt be a point in posting the screen shot, its just the Visual Basic open with the form design showing

  15. #15
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: moving the active exe

    well is that firewall thing part of the program? if not maybe he shelled a specific command that "replaces the file"

  16. #16
    Hyperactive Member umilmi81's Avatar
    Join Date
    Sep 2005
    Location
    Sterling Heights, Mi.
    Posts
    335

    Re: moving the active exe

    Quote Originally Posted by randem
    Sound like virus technology to me... File moving itself to hide from spying eyes.
    Yeah, me too. That's the only reason I can think of to move an exe after it started.

    I could provide a solution, but there is enough malware out there. I don't need this kid making a new one.

  17. #17

    Thread Starter
    Banned
    Join Date
    Nov 2005
    Posts
    22

    Re: moving the active exe

    im not a "kid" i dont make "malware" [Edited by MartinLiss]
    Last edited by GarrettDori; Nov 12th, 2005 at 09:56 PM.

  18. #18
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: moving the active exe

    Quote Originally Posted by GarrettDori
    well, it would be called replacing the application i guess, because a friend made on that does it, and when i open it, Kerio personal firewall comes up and says "Replacimg Application" but the bad thing is, my friend wont tell me how
    I use this firewall - ...edited...

    The firewall uniquely identifies executables for firewall rules (block, allow, et al). If the size or date changes on an executable, the firewall no longer identifies it as the same executable, so the old rule no longer applies.

    However, Kerio suggests to the user that if the filename is the same, it might be the "same" executable, but with different size and date attributes.

    That is what is happenning from that message. Its replacing an identity in it's internal database for firewall rules. No executables are being moved around.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  19. #19
    Lively Member
    Join Date
    Jan 2005
    Location
    earth
    Posts
    89

    Re: moving the active exe

    Quote Originally Posted by umilmi81
    Yeah, me too. That's the only reason I can think of to move an exe after it started.

    I could provide a solution, but there is enough malware out there. I don't need this kid making a new one.

    I hate people like that, yes it is bad to give away info that can write a virus but at the same time I don’t think that VB was written for you so that you can have info to write good programs and you can decide (by looking at one post) who is worthy to have that info and who isn’t. If you want to help out the ....."adult" then go ahead but don't sit here and say he shouldn’t be aloud to learn the code because he has every right to learn it just like you did when you were a new at VB.
    Aim: zhahaman2001

  20. #20
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: moving the active exe

    I see no valid non-malicious reason for doing what was asked for, and am pleased that nobody was willing to post code which was presumably to be used for a virus or some other kind of malware. Note that it took 3 days of people not giving an answer for the poster to deny it was something of this nature, and what was said in that denial had to be modified by an Admin (presumably as it was rude).

    I (like the people who posted above) have no problem with people learning, and we actively help people on a regular basis... but we dont like to see people learning potentially dangerous things with what seem to be bad intentions, as we (as well as our friends/family) are likely to be the recipients of those intentions.

    If anybody wants to learn to program, there are many pieces of code on the forums (particularly in the CodeBank and UtilityBank forums) that are good to learn from, or they can start a new (non-malicous) project from scratch and ask for help when they get stuck. Like many others here, I don't want to help people cause problems for others.


    As this thread is several months old, and the poster has been banned, I am now closing this thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width