check folder exists and if not create a new folder
Copy link to clipboard
Copied
Hi all,
is it possible to check whether the folder is already exists or not thru Javascript.
Since I can able to directly give the path and randomly create the filename.
However I have to create a datewise folder before placing. Also I have to get the windows login user.
for example
I have given a path as '\c\Siva\'
1. Under 'siva', I have to create a folder based on current date like '30062016'
2. In this folder, i have to place a file as 'windows_loginId¤tdatetime.pdf'
Could you please help on this.
How do we create a folder and get the windows login userID.
Thanks
Siva
sivamaddy​
Copy link to clipboard
Copied
You do not have access to folders and files (with a few exceptions) from within Acrobat's JavaScript, this means you cannot find out if a folder exists or not, and you also cannot create a folder. You will have to do this outside of Acrobat. What I do in cases like this is to create e.g. a VB application that uses Acrobat's IAC interface to do all the Acrobat related stuff, and then the native OS support to e.g. create directories, move files, ...
Copy link to clipboard
Copied
No, neither of those things is possible with Acrobat JavaScript.
Copy link to clipboard
Copied
If you want this access in Acrobat or Reader you need to create a plug-in using the SDK and install it to the appropriate folder. If you need to install this on others' systems you will have to register as a developer using the SDK.

