which will be inaccesible from 'windows explorer' unless this script is run.
Thanks to Fin for Folder names with a trailing dot?
Thanks to Sean for DefineDosDevice()
Usage: Run the script and use the hotkey ^#x ( Ctrl+Win+X ) to access the secret folder.
[*:3jepp40q]Note1: If drive letter 'X' is unavailable in your filesystem, replace all the 'red-marked'
with any free drive letter.
[*:3jepp40q]Note2: Mapped drive 'X:' will be available only when this script is running and will be
unmapped when the script quits.
Loop %A_MyDocuments%,1 ; [color=indigo]SecretFolder 10L - By SKAN / 19-Nov-2010[/color]
MyDoc := A_LoopFileShortPath ; www.autohotkey.com/forum/viewtopic.php?t=65131
If !FileExist( hiddenFolder := MyDoc "\7154~1" ) {
FileCreateDir, \\?\%MyDoc%\...
FileSetAttrib, +SH, \\?\%MyDoc%\...
} DllCall( "DefineDosDevice", UInt,0, Str,"[color=darkred]X[/color]:", Str,hiddenFolder )
OnExit, QuitScript
^#[color=darkred]x[/color]::Run [color=darkred]X[/color]:\,,Max ; // end of auto-execute section //
QuitScript:
ExitApp, % DllCall( "DefineDosDevice", UInt,1|2, Str,"[color=darkred]X[/color]:", Int,0 )







