Cpath save to Network Drive

Community Beginner ,
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.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

108

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

Cpath save to Network Drive

Community Beginner ,
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.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

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.

TOPICS
Acrobat SDK and JavaScript

Views

109

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
Jul 16, 2018 0
Most Valuable Participant ,
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
Reply
Loading...
Jul 16, 2018 0
Most Valuable Participant ,
Jul 16, 2018

Copy link to clipboard

Copied

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
Reply
Loading...
Jul 16, 2018 0