Cpath save to Network Drive

Community Beginner ,
Jul 16, 2018 Jul 16, 2018

Copy link to clipboard

Copied

This is more of Curiosity, I'm unsure if this can be done.  Now I have Script that will save to a Network Drive, like so:

oNewDoc.saveAs({cPath: "/K/Penta/Split/"+filename});

Now I wish to know instead of Saving it to my K Drive, could I save it by specifying the name of network drive like so:

\\sovarchrpri01\d$\Penta\Split\

This is just so I can avoid constantly changing the Drive Letter, since this drive letter changes for the sovarchrpri01 a lot, and just change the folders I would be saving it.

TOPICS
Acrobat SDK and JavaScript

Views

139

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 , Jul 16, 2018 Jul 16, 2018
Open a PDF file from that folder and run this script from the JS Console:this.pathIt will print out the correct path to use in your script.

Likes

Translate

Translate
Adobe Community Professional ,
Jul 16, 2018 Jul 16, 2018

Copy link to clipboard

Copied

Open a PDF file from that folder and run this script from the JS Console:

this.path

It will print out the correct path to use in your script.

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
LEGEND ,
Jul 16, 2018 Jul 16, 2018

Copy link to clipboard

Copied

LATEST

You have to use a DIPath, but it doesn't have to use a drive letter...

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