Results 1 to 8 of 8

Thread: ©0pY @n €X€ w ]-[ ! L€ !t'$ ®UnN!ng ???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Red face

    hi all

    i send my program via e-mail to the user and he opens the program from the e-mail-program (outlook: select open instead of save).
    now the program tests, if it is already in the right folder. if not, it copies itself to the folder, while it is running...

    is this possible?????
    or what can i do...



    @|€x -

  2. #2
    Guest

    Talking

    mhhh... use dde comunication to let you're program close if it is running, copy the file to the right folder, and run you're prog again.

    or u use the RunOnce reg-key(s)

    hope that helps
    talon


    btw: don't know why u use this lame font at the subject....

  3. #3
    Guest
    OK, it was funny once, but please dont use that ©R@ppY font every time. i know its not a font, but what the hell else would you call it!

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146
    info: wer will kann mit mir auch deutsch reden.... *g*

    ad font: it's simple fun!
    and it catches the readers eyes....

    how to use the dde comm. ? (bidde nich mehr in engl wenn möglich...das is zu kompliziert...)

    is it possible to add the .exe to the project and then write it to the hd with
    open "" for output binary as .....
    ???

    m€

  5. #5
    Lively Member
    Join Date
    May 1999
    Posts
    64
    here is a way to copy your prgoram while it is running:

    just use the 'app.path+"\"+app.exename' for the input file, it does work while its runing, its the copy routine i used for my self Extracting EXE...

    î Mäðè à §îMþ£Ê þ®óG®ÀM †HÁ† ðôÊš †HΧ, †HÏš îš è¤†ëñÐÊÐ ©HîÂç†ô®š, †HË ÇHä®Ç†Ö®š W̆H †Hë ã§ÇÎí Vå£Ûè G®ËÂ†è® †HÅÑ 127.

    äÃÃÄéÊééêÈÏíÌÌìõÖÓÒÒûÙÚÚÙÚÛ



    {

    SUB copy (inputfile$, outputfile$)
    DEFINT A-Z
    FreFil1 = FREEFILE
    OPEN inputfile$ FOR BINARY AS #4
    FreFil2 = FREEFILE
    OPEN outputfile$ FOR BINARY AS #5

    DO
    r = r + 1

    IF r * 1024& > LOF(4) THEN t = LOF(4) - ((r - 1) * 1024&) ELSE t = 1024&
    a$ = SPACE$(t)
    GET #4, , a$
    PUT #5, , a$
    LOOP UNTIL LOF(4) = LOF(5)
    CLOSE #4, #5

    END SUB


    }

    Brandon D
    B.A.D. Software
    [email protected]
    http://bad5887.homepage.com

    [Edited by Bad5887 on 04-26-2000 at 08:22 PM]

    [Edited by Bad5887 on 04-26-2000 at 08:23 PM]

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146
    thanx



    now it worx


  7. #7
    Junior Member
    Join Date
    Mar 2000
    Location
    Ede, Gelderland, Nederland
    Posts
    26

    Exclamation Hello this is VB!!!

    It is VB! Not QB!

    To ©opy a file:

    Code:
    dim Van as string
    dim Naar as string
    
    van = "c:\command.com"
    naar = "c:\backup\command.com"
    
    filecopy Van, Naar
    LauPro

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    chicago (hope)
    Posts
    146

    Red face it worx already....

    and i dont know, if filecopy is able to copy the running program.....

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