clearenv command
Last updated on
The clearenv command clears the UltraDefrag specific environment variables set by the setenv command:
C:\Program Files\UltraDefrag>set UD_EX_FILTER
UD_EX_FILTER=*system volume information*;*temp*;*tmp*;*recycle*;*dllcache*;*ServicePackFiles*;*Windows.old*;*.log
C:\Program Files\UltraDefrag>clearenv
C:\Program Files\UltraDefrag>set UD_EX_FILTER
Environment variable UD_EX_FILTER not defined
UD_EX_FILTER=*system volume information*;*temp*;*tmp*;*recycle*;*dllcache*;*ServicePackFiles*;*Windows.old*;*.log
C:\Program Files\UltraDefrag>clearenv
C:\Program Files\UltraDefrag>set UD_EX_FILTER
Environment variable UD_EX_FILTER not defined
The clearenv command is part of the UltraDefrag Supplementary Scripts. Download the scripts and put them to the installation directory of UltraDefrag to be able to use the command.
Please note, as the clearenv command is a batch script, you have to use the system call command to call it from your batch scripts:
1 | call "%UD_INSTALL_DIR%\clearenv.cmd" |