Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

ExtendScript: Create hidden folder

Explorer ,
Mar 11, 2021 Mar 11, 2021

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
415
Translate
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

Community Expert , 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();

 

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

 

Translate
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