boy15 Posted November 12, 2014 Share Posted November 12, 2014 (edited) Hi What is the wrong in following script Local $var = FileSelectFolder("autoit script", "") RunWait(@ComSpec & " /c " & " echo off && title autoitscript " & "attrib -h -r -s /s /d $var &:\*.*") When I use this script to show hidden fies that is hidden by shortcut virus, it is not work If I run commands form CMD manually it is work and automatically appear hidden files. Edited November 12, 2014 by boy15 Link to comment Share on other sites More sharing options...
MHz Posted November 12, 2014 Share Posted November 12, 2014 Use /q to turn off echo. $var needs to outside the string to use its value. Local $var = FileSelectFolder("autoit script", "") If Not @error Then RunWait('"' & @ComSpec & '" /q /c title autoitscript & attrib -h -r -s /s /d "' & $var & '\*.*"') EndIf Link to comment Share on other sites More sharing options...
jguinch Posted November 12, 2014 Share Posted November 12, 2014 Also, do you know there is an AutoIt function to set file attributes : FileSetAttrib() ? Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now