C# : help for check version app

Results 1 to 8 of 8
  1. #1
    Newbie doanlephuvinh is offline
    MemberRank
    Aug 2019 Join Date
    3Posts

    sad C# : help for check version app

    C# : help for check version app
    I want to write an app. It called launch.exe. I want to write a method for check version with that app. Description : when I open that launch.exe , It will check the version from the Version file in current location of that launch. It will compare the version file from ftp server with the version file I had in that current location like I said. If you guys have any code or document about that please help me. Thanks alot!


  2. #2
    0x1F0FFF TanGzkie is offline
    True MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    989Posts

    Re: C# : help for check version app

    hello ! @doanlephuvinh, care to watch this video :Click me auto update! this will redirect you to the video tut series.
    • KEEP CALM AND LEARN •

  3. #3
    Newbie doanlephuvinh is offline
    MemberRank
    Aug 2019 Join Date
    3Posts

    Re: C# : help for check version app

    Quote Originally Posted by TanGzkie View Post
    hello ! @doanlephuvinh, care to watch this video :Click me auto update! this will redirect you to the video tut series.
    Thank you bro..

  4. #4
    0x1F0FFF TanGzkie is offline
    True MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    989Posts

    Re: C# : help for check version app

    Welcome buddy :) , just a tip : lambda + LINQ c# .. will be good for a start :) Goodluck.
    • KEEP CALM AND LEARN •

  5. #5
    Newbie doanlephuvinh is offline
    MemberRank
    Aug 2019 Join Date
    3Posts

    Re: C# : help for check version app

    Quote Originally Posted by TanGzkie View Post
    Welcome buddy :) , just a tip : lambda + LINQ c# .. will be good for a start :) Goodluck.
    Can you help me a bit more. I want to save the file I have downloaded to current drive. I don't want to save file like the code below

    File.WriteAllText("D:\\55_SEPA_30-04-2017.xml", strXMLGenerate); --- not like that

    Like I put my app in a folder in D drive, and then , I want to save files right that folder. How can I do that with code. Do you have any tips for me to do that?

  6. #6
    0x1F0FFF TanGzkie is offline
    True MemberRank
    Sep 2008 Join Date
    loc => {p => o}Location
    989Posts

    Re: C# : help for check version app

    Quote Originally Posted by doanlephuvinh View Post
    Can you help me a bit more. I want to save the file I have downloaded to current drive. I don't want to save file like the code below

    File.WriteAllText("D:\\55_SEPA_30-04-2017.xml", strXMLGenerate); --- not like that

    Like I put my app in a folder in D drive, and then , I want to save files right that folder. How can I do that with code. Do you have any tips for me to do that?

    Yes you can do that here's some tip and example:

    firstly,
    add this using System.IO; at the top .
    then call some built-in functions like
    Directory.Exists,
    Directory.CreateDirectory...
    And then the Path.Combine.
    HERE'S SOME CODE
    PHP Code:
    string root = @"D:\Temp";  <--- the folder name
    if (!Directory.Exists(root)) {Directory.CreateDirectory(root);  }
    //else if Exists saves the files of you're app on that directory.
    File.WriteAllText(root "\\"+Filename+".xml"strXMLGenerate); 
    Ref : https://www.c-sharpcorner.com/articl...es-in-c-sharp/
    if you want some actions use Delegates Combo it with IEnumerable then a foreach statements
    REF:https://stackoverflow.com/questions/...014762#3014762
    Add this : https://stackoverflow.com/a/573270/2258541
    Last edited by TanGzkie; 21-08-19 at 07:36 AM.
    • KEEP CALM AND LEARN •

  7. #7
    Programmer cyberinferno is offline
    True MemberRank
    Jun 2009 Join Date
    127.0.0.1Location
    693Posts

    Re: C# : help for check version app

    I have recently open sourced a game file checker and updater. Take a look

    https://github.com/cyberinferno/cabal-online-updater
    ** Web developer **

  8. #8

    Re: C# : help for check version app

    Thanks bro !!!



Advertisement