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

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

461

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

Community Expert , Jul 16, 2018 Jul 16, 2018

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.

Votes

Translate

Translate
Community Expert ,
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.

Votes

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...

Votes

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