OS/2, eCS & ArcaOS - Technical > Storage
How to force a folder 'refresh' from REXX?
Andreas Schnellbacher:
--- Quote from: Dariusz Piatkowski on April 11, 2020, 06:35:49 pm ---I assume 'MENUITEMSELECTED=503' references the 'Folder Refresh' function? If so, what's the best place for me to check to understand all these?
--- End quote ---
It took a while, but I've found it in REXX Tips & Tricks:
--- Code: ---start view /s rxtt36 "IDs for the setup string MENUITEMSELECTED"
--- End code ---
Dariusz Piatkowski:
Hi Remy,
--- Quote from: Remy on April 11, 2020, 06:48:05 pm ---...Don't create any rexx and just use the provide tool under ArcaOS.
See here:
https://www.arcanoae.com/wiki/arcaos/post-install-tips-hints/...
--- End quote ---
Good suggestion, but it is not quite the problem I am seeing. During re-boot all is good...but as the NAS located folder is updated at the source (NAS) the changes take a long time, or sometimes never get reflected on the OS/2 side of things (so WPS). This is the reason why I want to force the folder refresh to happen on on-going basis.
Your link did give me some other ideas though, the suggestion made there is to use OO.EXE to issue a listing of folder contents (where output goes to nul), thus forcing a refresh of the folder. Since I am already using OO.EXE that may keep things more consistent.
The thing is that the results I'm getting are somewhat incosistent, namely, I can point to that NAS folder through it's objectid or through the actual filesystem name:
--- Code: ---[G:\util\misc]oo /I 0x36C68
36C68 ---- XFolder "V:\PUBLIC\SYSLOG"
[G:\util\misc]oo /I 0x3C7E6
3C7E6 ---- XFolder "V:\PUBLIC\SYSLOG\202004"
[G:\util\misc]oo /I v:\public\syslog\202004
3C7E6 ---- XFolder "V:\PUBLIC\SYSLOG\202004"
[G:\util\misc]oo /L v:\public\syslog\202004
0 objects in V:\PUBLIC\SYSLOG\202004
--- End code ---
The attempt to list the contents "/L" shows 0 objects...but I certainly have files there:
--- Code: ---[G:\]dir V:\PUBLIC\SYSLOG\202004
The volume label in drive V is NETDRIVE.
Directory of V:\PUBLIC\SYSLOG\202004
4-09-20 6:15a <DIR> 0 .
4-09-20 6:15a <DIR> 0 ..
4-07-20 11:58p 60644 0 192.168.1.1_20200407.txt
4-05-20 6:43p 33464 0 192.168.1.10_20200405.txt
4-03-20 10:52p 84015 0 192.168.1.1_20200403.txt
4-02-20 10:50p 7451 0 192.168.1.10_20200402.txt
4-09-20 6:15a 2351 0 192.168.1.10_20200409.txt
4-08-20 11:57p 72364 0 192.168.1.1_20200408.txt
4-08-20 10:47p 7053 0 192.168.1.10_20200408.txt
4-10-20 11:52p 2644 0 192.168.1.10_20200410.txt
4-06-20 11:34p 57043 0 192.168.1.1_20200406.txt
4-02-20 10:30p 82303 0 192.168.1.1_20200402.txt
4-09-20 11:24p 63599 0 192.168.1.1_20200409.txt
4-10-20 11:59p 56475 0 192.168.1.1_20200410.txt
4-05-20 11:59p 57198 0 192.168.1.1_20200405.txt
4-02-20 11:00p 2351 0 192.168.1.10_20200403.txt
4-04-20 10:57p 71024 0 192.168.1.1_20200404.txt
4-11-20 1:52p 3860 0 192.168.1.10_20200411.txt
4-01-20 9:58p 3468 0 192.168.1.10_20200401.txt
4-11-20 4:27p 56320 0 192.168.1.1_20200411.txt
4-01-20 10:48p 64493 0 192.168.1.1_20200401.txt
21 file(s) 788120 bytes used
2308202 M bytes free
--- End code ---
Assuming that '/L' only shows non-file objects in folder (as the OO.EXE) help explains I thought I would test on the parent folder (V:\PUBLIC\SYSLOG) which certainly will show the data specific log folder (202004), still that returns 0 as well.
I will try this out though, maybe enough to force a refresh.
Dariusz Piatkowski:
Andreas,
--- Quote from: Andreas Schnellbacher on April 11, 2020, 10:34:55 pm ---
--- Quote from: Dariusz Piatkowski on April 11, 2020, 06:35:49 pm ---I assume 'MENUITEMSELECTED=503' references the 'Folder Refresh' function? If so, what's the best place for me to check to understand all these?
--- End quote ---
It took a while, but I've found it in REXX Tips & Tricks:
--- Code: ---start view /s rxtt36 "IDs for the setup string MENUITEMSELECTED"
--- End code ---
--- End quote ---
Yup, got it, I was able to find it, excellent pointer, thank you again!
Navigation
[0] Message Index
[*] Previous page
Go to full version