Giter VIP home page Giter VIP logo

Comments (7)

tamlok avatar tamlok commented on May 17, 2024

Hi,这是因为配置文件里面包含有路径,比如笔记本的根目录之类的,即使保存了带着走,在别的电脑上还是很可能会出错的。您能说一下具体的使用场景吗?比如有啥需求之类的。看看有没有啥变通方法。谢谢!

from vnote.

heartnn avatar heartnn commented on May 17, 2024

我现在用syncthing同步两台电脑,路径不一样实在是不方便,另外笔记本的确是无法使用相对路径的,目前只能用mklink链接过去了。

rd /s /q %AppData%\VNote
mklink %AppData%\VNote /J .\settings
rd /s /q C:\vnotebook
mklink C:\vnotebook /J .\vnotebook

from vnote.

tamlok avatar tamlok commented on May 17, 2024

@heartnn hi,我目前的使用方式是只用网盘同步数据,vnote程序在两台电脑上是独立的,在每台电脑上分别导入笔记本(同一个笔记本,但不同路径,名字随意),这样就可以跨机器编辑同一个笔记本了。这样的好处是数据和程序分离,程序也没必要同步过去。

后面我考虑把笔记本这种数据从配置文件里面独立出来吧,然后程序优先使用程序所在目录下的配置文件。但配置文件里面其实还是会有部分配置是依赖于不同机器的。

谢谢反馈!

from vnote.

heartnn avatar heartnn commented on May 17, 2024

了解了,多谢回复,感觉现在mklink也不是不能接受。

from vnote.

tamlok avatar tamlok commented on May 17, 2024

Hi, VNote将会支持优先读取可执行文件所在目录的vnote.ini配置文件 (01acd03)。敬请关注下一个版本。谢谢!

from vnote.

Stivenke avatar Stivenke commented on May 17, 2024

怎么设置才能保存在当前目录,方便携带?

我做了一个 portable 包,你可以试试看,#676

from vnote.

heartnn avatar heartnn commented on May 17, 2024

自己做了一个cmd, 之前好像没发过来

@echo off
if not exist "%CD%\Profile\AppData\Roaming" mkdir "%CD%\Profile\AppData\Roaming"
if not exist "%CD%\Notes" mkdir "%CD%\Notes"
if not exist "%CD%\Profile\AppData\Local\Temp" mkdir "%CD%\Profile\AppData\Local\Temp"
set USERPROFILE=%CD%\profile
set APPDATA=%CD%\Profile\AppData
set TEMP=%CD%\Profile\AppData\Local\Temp
set TMP=%CD%\Profile\AppData\Local\Temp
if not exist "%CD%\Notes" goto message
goto start

:message
echo PORTABLE VNote
echo -------------------------------
echo Please point path in VNote:  .\Notes
echo.
pause 

:start
start App\VNote.exe /I

from vnote.

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.