Comments (5)
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.
For immediate use, the first 2 scenario should be enough. However, I think you could consider something like this :
-
Test the path as absolute path
-
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. -
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.
Here's a new version for testing: Portable VBA Sync Tool 1.3.0.zip
from vbasync.
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.
VBA Sync Tool 1.3.0 is now released!
from vbasync.
Related Issues (20)
- Allow drag and drop of folder and file HOT 4
- Recent files are ignore if spécifier as relative path HOT 1
- Recent files are ignored if specified as relative path HOT 5
- When you load a session, if file or folder doesn't exist, alert user and disable some functions HOT 1
- Prevent publishing code to worksheets that don't exist HOT 2
- Option: ignore worksheets and modules with no VBA Code
- Language selected on first launch not taken into account HOT 2
- GistThat integration HOT 7
- Support subdirectories HOT 11
- Differentiate extract/publish Office document HOT 4
- FRX extraction isn't repeatable if Office jumbles the site order HOT 12
- Input string was not in a correct format HOT 5
- Splitting VS Project HOT 4
- OLE error at "next" extraction HOT 1
- Paths in VBASync UI with national characters are restored incorrectly on session auto-restore HOT 4
- "Error reading 'o' stream in .frx data" after the first export HOT 5
- New maintainers and new versions of VBA Sync HOT 9
- Issue while extracting from Office file
- Chinese garbled HOT 1
- debug is error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vbasync.