Copy link to clipboard
Copied
Is it possible to create a hidden folder in a Windows directory with ExtendScript? I already know how to create folders with Extendscript but not how to make them hidden as well.
I tried creating folders with a dot in the name (/.someFolder) since that's usually how Windows hides folders but that didn't work.
1 Correct answer
you can hide files but oddly you can't hide folders with javascript
one way of hiding folders in Windows is using a *.bat file to do it
create a text file with a random name like "hideFolder.bat"
type the follwing and save the file, the folder to be hidden is called "hideMe"
@echo off
attrib +h "c:\users\canto\desktop\hideMe"
then, call your *.bat file from your jsx
var yourBatFile = File('c:/users/canto/desktop/hideFolder.bat');
yourBatFile.execute();
Explore related tutorials & articles
Copy link to clipboard
Copied
you can hide files but oddly you can't hide folders with javascript
one way of hiding folders in Windows is using a *.bat file to do it
create a text file with a random name like "hideFolder.bat"
type the follwing and save the file, the folder to be hidden is called "hideMe"
@echo off
attrib +h "c:\users\canto\desktop\hideMe"
then, call your *.bat file from your jsx
var yourBatFile = File('c:/users/canto/desktop/hideFolder.bat');
yourBatFile.execute();

