Community discussions

MikroTik App
 
kirost
just joined
Topic Author
Posts: 15
Joined: Fri May 13, 2016 4:05 pm

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

Mon Oct 04, 2021 11:49 am

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
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

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

Mon Oct 04, 2021 2:38 pm

Put back the users on C:
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

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

Mon Oct 04, 2021 3:15 pm

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.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19099
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

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

Mon Oct 04, 2021 3:48 pm

No wait, doesnt windows conform to winbox standards?? ;-PP
 
pe1chl
Forum Guru
Forum Guru
Posts: 10194
Joined: Mon Jun 08, 2015 12:09 pm

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

Mon Oct 04, 2021 5:27 pm

There is a file sessionpath in the winbox directory which has a pathname in it. You can edit that.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

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

Mon Oct 04, 2021 7:20 pm

@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...
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

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

Mon Oct 04, 2021 8:06 pm

Silly question, but you did update any existing icon properties to reflect new folder?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

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

Mon Oct 04, 2021 9:06 pm

Icon???

Link!!! ???
 
r00t
Long time Member
Long time Member
Posts: 672
Joined: Tue Nov 28, 2017 2:14 am

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

Tue Oct 05, 2021 2:13 am

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.
 
joegoldman
Forum Veteran
Forum Veteran
Posts: 766
Joined: Mon May 27, 2013 2:05 am

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

Tue Oct 05, 2021 6:51 am

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.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10194
Joined: Mon Jun 08, 2015 12:09 pm

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

Tue Oct 05, 2021 10:35 am

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.
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 <router> in the select list for the session file in winbox.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

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

Tue Oct 05, 2021 3:16 pm

Icon???

Link!!! ???
???
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

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

Tue Oct 05, 2021 3:28 pm

any existing icon properties
link, not icon???
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

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

Tue Oct 05, 2021 4:05 pm

link, not icon???
That will depend on you age I suppose :-)
 
kirost
just joined
Topic Author
Posts: 15
Joined: Fri May 13, 2016 4:05 pm

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

Sat Dec 04, 2021 12:25 pm

@rextended
@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...
"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
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

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

Sat Dec 04, 2021 3:24 pm

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.
 
kirost
just joined
Topic Author
Posts: 15
Joined: Fri May 13, 2016 4:05 pm

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

Sat Dec 04, 2021 10:09 pm

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.

Who is online

Users browsing this forum: lurker888 and 40 guests