É possível definir a classificação padrão como “Type” no File Explorer usando script?

0

Existe alguma maneira de classificar automaticamente todos os arquivos no Windows por TYPE em oposição a NAME?

Geralmente isso é feito indo para uma pasta, classificando por tipo, em seguida, indo para a faixa de opções, Exibir, Opções, Exibir e clicando em Aplicar para pastas e, em seguida, em OK.

Isso é muito trabalho para mudar apenas uma configuração.

Além disso, estou usando um PC em que o perfil do usuário é apagado após a reinicialização, portanto, não quero fazer isso toda vez que faço login. Já escrevi um script do PowerShell para fazer as outras personalizações de que preciso. Existe alguma configuração do Registro ou algo parecido que possa ser modificado usando um script para que isso não precise ser feito manualmente?

    
por InterLinked 28.06.2018 / 01:23

1 resposta

2

Como você pergunta se há algum método que possa fazer isso com um script em vez de precisar ser feito manualmente, incluí um script em lote e um script VB que você pode usar para definir essas configurações. para fazer o contrário usando sendkeys para emular o pressionamento das teclas de atalho File Explorer Teclado Alt mais alguns outros traços de tecla de teclado emulados e tal.

Script em lote

IF NOT DEFINED MINIMIZED SET MINIMIZED=1 && START "" /MIN "%~dpnx0" %* && EXIT
@ECHO OFF

SET TempVBSFile=%temp%\~tmpSendKeysTemp.vbs
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"

ECHO Set WshShell = WScript.CreateObject("WScript.Shell") >>"%TempVBSFile%"
ECHO Wscript.Sleep 900                                    >>"%TempVBSFile%"
ECHO WshShell.SendKeys "%%vyo"                            >>"%TempVBSFile%"
ECHO Wscript.Sleep 1500                                   >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{TAB 9}{RIGHT}{TAB}{ENTER}"       >>"%TempVBSFile%"
ECHO Wscript.Sleep 500                                    >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{ENTER}"                          >>"%TempVBSFile%"
ECHO Wscript.Sleep 500                                    >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{ESCAPE}"                         >>"%TempVBSFile%"

CSCRIPT //nologo "%TempVBSFile%"

EXIT /B

Script VB

Set WshShell = WScript.CreateObject("WScript.Shell") 
Wscript.Sleep 900                                    
WshShell.SendKeys "%vyo"                             
Wscript.Sleep 1500                                   
WshShell.SendKeys "{TAB 9}{RIGHT}{TAB}{ENTER}"       
Wscript.Sleep 500                                    
WshShell.SendKeys "{ENTER}"                          
Wscript.Sleep 500                                    
WshShell.SendKeys "{ESCAPE}"    

Instructions

  1. Navigate to a folder with File Explorer and then sort by the applicable column which you want to apply to all folders via File Explorer.

  2. Copy either the VBS or the batch script to this folder and then simple double click to execute either and the rest will be fully automated from there.

  3. Essentially it'll press Alt,V,Y,O, wait for 1.5 seconds, then press Tab 9 times,TabEnter, wait half a second then press Enter, wait half a second and finally press Esc to close the Folder Options window.

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    enter image description here

Mais recursos

por 28.06.2018 / 05:54