winbox can't work correctly if "users" folder moved from disk C:

after migrating users folders from C: to U: drive, winbox can’t find its files.
Instead of

U:\Users\USER\AppData\Roaming\Mikrotik\Winbox

, he looks for them in

C:\Users\USER\AppData\Roaming\Mikrotik\Winbox

(he also tries to write data there, if there is enough access)

C:\>echo %APPDATA%
U:\Users\USER\AppData\Roaming

C:\>echo %USERPROFILE%
U:\Users\USER

Windows 7, Winbox 3.31

Put back the users on C:

There are sometimes reasons why the user folder is NOT on C:.
Winbox should respect the WINDOWS environment variables. There are meant to be used for that purpose.

No wait, doesnt windows conform to winbox standards?? ;-PP

There is a file sessionpath in the winbox directory which has a pathname in it. You can edit that.

@kirost
instead to ask on forum or search one file, you have Simply used the function for do that?

on WinBox / Tools / Move Session Folder…

Silly question, but you did update any existing icon properties to reflect new folder?

Icon???

Link!!! ???

It would be good to have “portable” mode switch that would keep all files in current winbox directory - so it can be put and used from USB flash drive, without modifying any system files.
Something like: If subdirectory PORTABLE_PROFILE exists, store all files in there instead.

I have wanted for a long time to be able to move winbox working dir - I’d like to figure out a way to sync my managed lists database between devices without scripts or copying (using something like Dropbox or Nextcloud. THe session folder is just the .viw files so unfortunately is of little help.

It would be even better to have a “router stored” mode where winbox session files are stored on the router instead of the windows computer!
Of course in addition to what there is now. It would be an extra selection in the select list for the session file in winbox.

???

link, not icon???

That will depend on you age I suppose :slight_smile:

@rextended

“Move Session Folder…” function moves only the session folder, not the settings folder (which, by the way, contains the file with the path to the sessions folder named “sessionpath”

Default session path

C:\Users\USER\AppData\Roaming\Mikrotik\Winbox\sessions\

and it is inside the settings folder

C:\Users\USER\AppData\Roaming\Mikrotik\Winbox\

After using “Move Session Folder…” folders look like this:
the session folder is (for example):

D:\rextended_dont_understand_topic\

the settings folder remains the same

C:\Users\USER\AppData\Roaming\Mikrotik\Winbox\

Now, i use dirty trick (костыль) for fix this:

C:\Windows\system32>mklink /D c:\Users\USER U:\Users\USER
символическая ссылка создана для c:\Users\USER <<===>> U:\Users\USER

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData in registry is where WinBox takes the path from. How much correct or wrong it is, I can’t say.

Thanks, Sob!
It’s really solve this problem.