Git Product home page Git Product logo

Comments (5)

chelh avatar chelh commented on May 24, 2024

Okay, so let's say you have the .exe in D:\VBASync\. I think it shouldn't be too hard for me to detect and use a relative path for D:\VBASync\session.ini or D:\VBASync\Sessions\session2.ini. It would be harder to detect and use a relative path for D:\VBASync Sessions\session3.ini, and that also seems like a much more niche request. How about I cover the first two scenarios, but not the third? Would that still be just as useful?

from vbasync.

hectorticoli avatar hectorticoli commented on May 24, 2024

For immediate use, the first 2 scenario should be enough. However, I think you could consider something like this :

  1. Test the path as absolute path

  2. Test the path as relative path using code like this var absolute_path = Path.Combine([ApplicationFolder], "..\images\image.jpg"); (picked from http://stackoverflow.com/questions/4796254/relative-path-to-absolute-path-in-c). I think this already covers all tricky cases about relative paths.

  3. if the 2 failed, then the file couldn't be found and should be ignored (or deleted?, see next)

I can't decide in this case if that would be smart to automatically delete the path from the recent item list. Maybe you could use the same behavior as Visual Studio, that is check if the file exists only if the user try to load the file, and if the file can't be found, ask if the user want to delet the entry.

I didn't test the code myself, but as this is in .Net main code, that should work ^^

from vbasync.

chelh avatar chelh commented on May 24, 2024

Here's a new version for testing: Portable VBA Sync Tool 1.3.0.zip

from vbasync.

hectorticoli avatar hectorticoli commented on May 24, 2024

Sorry for being "late", I had Internet access problem recently. I tested that new version. Apart from the french resource file that I updated (see corresponding discussion), everything seems OK as far as I remember. I think that as far as I'm concerned, version 1.3.0 is ready for release.

from vbasync.

chelh avatar chelh commented on May 24, 2024

VBA Sync Tool 1.3.0 is now released!

from vbasync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.