dcsimg

Search:

Type: Posts; User: KI2000

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    12,060

    Re: Find text in a huge text file (VBA - Excel)

    It' not really Office Development ... I'm using the Macro in Excel to create a VB program because I don't have any other options :rolleyes:

    As far as I remember, most of the VB Classic Code is the...
  2. Replies
    8
    Views
    12,060

    Find text in a huge text file (VBA - Excel)

    Hello,

    As we don't have VB installed at work, we have to do it with VBA in Excel.

    I wrote a program that finds a specific string in a txt file and returns the complete line. It will loop until...
  3. Re: Easy way to pick another text box depending on an option

    Sorry for the late reply.
    I've been extremely busy with other things.

    It works. :thumb:

    Thanks :)
  4. [RESOLVED] Easy way to pick another text box depending on an option

    Hello,

    Here's my problem.
    Depending on an option chosen by the user, another text box should be filled with data that is coming from a text file.

    I know you can do something with a select case...
  5. Replies
    2
    Views
    1,378

    Re: Registry: Read and Write Dword

    Hey,

    Thanks for your research. What you are saying is probably correct.
    I solved it by using other code I found on the internet.
    For those who are interested, it is in attachment.

    Now I have...
  6. Replies
    2
    Views
    1,378

    Registry: Read and Write Dword

    hello,

    I've been reading and trying a lot of code, but I can't seem to get it to work.
    What I would like to do is to read a dword from the registry but also be able to write a new value to it....
  7. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    Still can't figure out what's wrong with my code ... anyone else who can help?
  8. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    uninstall process ... The vb program uninstalls another program but makes backups before uninstalling.

    This is part of the backup process used in the vb application that is uninstalling another...
  9. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    I think I pinpointed the problem to this:



    spath = "c:\program files\myapp\afolder\"
    sfilename = Dir(spath & "*.dat")
    Do While sfilename <> "" And sfilename <> "template.dat" And sfilename <>...
  10. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    Hack ... I lost you ...

    I'm trying to uninstall a program after it has been installed.

    So the folder is present when the application is installed, and even when the program is deleted using...
  11. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    RobDogg: Tried that too ... didn't have a problem deleting the folder after uninstalling manually.

    BTW:
    Addition to my previous comment ...

    All I did was change the path in the shell command...
  12. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    That's the default location of that file.

    I'm going to try (just a test) to put the uninstaller in another folder ... I bet it will work then.

    Just tested something else:
    - I ran my vb app
    -...
  13. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    Hope I got this right ... I compiled the program and saved it on another partition of my drive.
    I closed down Visual Basic 6 and ran my program; the same happened: runtime error 70 ... I'm starting...
  14. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    It's not necessary with the fso.deletefolder command imho.

    The kill command however won't work until the folder is empty. That's why I chose to use fso.deletefolder.

    Is there any way I can kill...
  15. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    tried it, same problem :(
  16. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    No problem RobDogg ... Hope you get well soon ...

    I already tried with a delay of 10 seconds ... Still same problem.

    What I was thinking: Isn't it possible that the shell command somehow locks...
  17. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    RobDogg: Explain that to me ... I'm putting bfound = false in the loop. So when the process is no longer there, bfound should stay false ... Of course, that's only my opinion and I'm not an expert...
  18. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    RobDog888: bfound is not always true, it tries to delete the folder after the uninstaller quits, that's the moment I receive that damn runtime error 70 ...

    Hack: There's nothing in the unload...
  19. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    There are user created files in it, which are not deleted...

    The goal is to perform a complete reinstall with auto backups of certain files.

    Hack: I tried that already, and it does not solve...
  20. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    Re: shell problem

    Thanks :-)

    It's a little more complex ... Let me show ....


    Shell "c:\program files\myapp\uninst.exe", vbNormalFocus

    For Each process In GetObject("winmgmts:").execquery("Select Name from...
  21. Thread: shell problem

    by KI2000
    Replies
    32
    Views
    1,128

    shell problem

    Hello,

    I'm creating a little program that is uninstalling another program.
    This is done by using the shell command like this:

    shell ("c:\program files\myapp\uninst.exe")

    Now, once the...
Results 1 to 21 of 21



Featured


Click Here to Expand Forum to Full Width