- May
- 34
- 0
Hi,
IMHO the following is a bug. (I just report something, not asking for help)
An important btm file I used for several years, causes big trouble today. The BTM is used to switch to another desktop. To day, it was first executed since upgrade from v19 to v2r. The result was an error message on an empty desktop: F:\users\dataruud\desktop does not exist.
But I can open that location and it is there? Microsoft kidding?
Investigating the problem, i found that the new location in the registry, had a leading blank.
TEST.BTM
@echo off
set where=%1
set curname="HKCU_64\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\TestValue"
set result=%@regset[%curname, REG_EXPAND_SZ, %where]
echo %result
pause
After execution: test.btm F:\Users\DataRuud\Desktop
the stored value has a leading blank. Cause: in V26 the blank between _SZ and %where is used as part of the value %where. On another machine, not yet updated, everything is ok.
IMHO the following is a bug. (I just report something, not asking for help)
An important btm file I used for several years, causes big trouble today. The BTM is used to switch to another desktop. To day, it was first executed since upgrade from v19 to v2r. The result was an error message on an empty desktop: F:\users\dataruud\desktop does not exist.
But I can open that location and it is there? Microsoft kidding?
Investigating the problem, i found that the new location in the registry, had a leading blank.
TEST.BTM
@echo off
set where=%1
set curname="HKCU_64\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\TestValue"
set result=%@regset[%curname, REG_EXPAND_SZ, %where]
echo %result
pause
After execution: test.btm F:\Users\DataRuud\Desktop
the stored value has a leading blank. Cause: in V26 the blank between _SZ and %where is used as part of the value %where. On another machine, not yet updated, everything is ok.