Results 1 to 14 of 14

Thread: Please test this

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2012
    Posts
    7

    Please test this

    Hello, I am just starting to learn to code in Visual basic, and I have a project I want to work on, but i want it tested, by another eye.

    It's just a text file, in a .RAR

    Please let me know ASAP.

    It takes a Dropbox URL and gets a version and displays, then the application version.

    And does a simple temp clean.

    ( FROM WHAT I KNOW ONLY, TIPS ARE APPRECIATED)
    Attached Files Attached Files

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Please test this

    What are you suppose to do in-order to run the program, just paste the code into a new project or add a control (if so which control/s)?

    Edit:

    I receive an error:
    Unable to open module file 'C:\Users\User\AppData\Local\Temp\.NETFramework,Version=v4.0,Profile=Client.AssemblyAttributes.vb': System Error &H80070002& C:\Users\User\AppData\Local\Temp\.NETFramework,Version=v4.0,Profile=Client.AssemblyAttributes.vb

    and all that appears to happen when I run the project and click the command button is the message box appears informing me that the cache has been cleared.
    Last edited by Nightwalker83; Jul 30th, 2012 at 08:41 PM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2012
    Posts
    7

    Re: Please test this

    Add a button, 2 labels. One named lblClient other lblServer. Copy & Paste the code, Erase everything in the code, and paste mine.

    The error message is because you need .NET framework 4.0

    Thanks.

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Please test this

    I have .NET framework 4.0 installed.

    Edit:

    Nothing appears to be deleted from the Appdata/local/temp either.
    Last edited by Nightwalker83; Jul 30th, 2012 at 08:55 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2012
    Posts
    7

    Re: Please test this

    Well I don't understand why it is not working for you, it works perfectly for me Windows 7 x64 bit.

    Whats ure OS?

  6. #6
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Please test this

    Windows 7 x64 bit.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2012
    Posts
    7

    Re: Please test this

    Well could you figure out whats wrong, any ideas?

    Cause all it does it snag the SpecialDirectories TEMP ( %temp% )
    Get's all files, and deletes them. I don't see an issue why it wouldent work?

  8. #8
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Please test this

    So it's suppose to delete all the files/folders in the above directory?

    Edit:

    It will not work if the file you are trying to delete is open. You need to check whether or not the file is open before you can delete it.

    Something like this should work for the check method.
    Last edited by Nightwalker83; Jul 31st, 2012 at 12:31 AM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  9. #9

    Thread Starter
    New Member
    Join Date
    Jul 2012
    Posts
    7

    Re: Please test this

    Well what I did is added a On Error resume next on the For loop, which all temp folders, most of the time have files in use, it just skips all the ones in use, and deletes the one's that are not.

  10. #10
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Please test this

    Using On Error Resume Next such as that is bad practice.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  11. #11

    Thread Starter
    New Member
    Join Date
    Jul 2012
    Posts
    7

    Re: Please test this

    But it still works? as intended. So Explain?

  12. #12
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Please test this

    Read this.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  13. #13
    New Member
    Join Date
    Aug 2012
    Posts
    3

    Re: Please test this

    With the GetFiles functions, the result is not an array of strings right? If I'm not mistaken My.Computer.FileSystem.DeleteFile() takes a string. If you use TMPfile.FileName it may work? Also, Nightwalker83 makes a good point with the use of On Error Resume Next. Maybe use try/catch as an alternative? At least it lets you know what type of errors you're dealing with.

    ~mshamory

  14. #14
    New Member
    Join Date
    Jan 2014
    Posts
    3

    Re: Please test this

    nice......

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