|
2012-09-26 12:24 AEST by Arthur Barrett - not a bug.
to remove the short version of the path you have to specify the short version of the path.
ie: the 'add' function facilitates converting any path (including a relative path) to a short+long path, but
the 'del' function actually does nothing smart - just deletes exactly the path you tell it to delete.
setci -l
\Device\HarddiskVolume1\DOCUME~1\ALLUSE~1\APPLIC~1\MARCHH~1\Temp
\Device\HarddiskVolume1\Documents and Settings\All Users\Application Data\MarchHare\Temp
\Device\HarddiskVolume1\Documents and Settings\All Users\Application Data\MarchHare\myrepo
\Device\HarddiskVolume1\DOCUME~1\ALLUSE~1\APPLIC~1\MARCHH~1\myrepo
setci -d c:\DOCUME~1\ALLUSE~1\APPLIC~1\MARCHH~1\Temp
setci -l
\Device\HarddiskVolume1\Documents and Settings\All Users\Application Data\MarchHare\Temp
\Device\HarddiskVolume1\Documents and Settings\All Users\Application Data\MarchHare\myrepo
\Device\HarddiskVolume1\DOCUME~1\ALLUSE~1\APPLIC~1\MARCHH~1\myrepo
This bug could be changed to an 'enhancement' - but setci appears designed to NOT be smart at all
deliberately - so that if a 'invalid' path is accidentally added then it can be removed easily, i.e.: no need to
deal with frustrating errors about 'path does not exist'.
changing subject from:
Setci -d doesn't remove "short" version of path
to:
enh: setci -d auto delete short and long variations of path
note: I personally think this is a bad idea - maybe if it was done it could be an additional switch, e.g.:
setci -a -d c:\path\to\dir
|