ExtendScript: Create hidden folder

Explorer ,
Mar 11, 2021 Mar 11, 2021

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.

TOPICS
Scripting

Views

63

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , Mar 11, 2021 Mar 11, 2021
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();

Likes

Translate

Translate
Adobe Community Professional ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

LATEST

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();

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines