IBOT javascript to save to network drive

Hey,
I use the below .js to save the results of an IBOT to a network location, it works fine and the file is saved but it can at times return an error even after always saving the file as expected, I use the schedule tables to display stats after in OBIEE so trying to stop it returning this non-genuine error.. any ideas.. thanks
Error...
+++ ThreadID: bc4 : 2013-12-10 12:05:35.411
Permission denied
[nQSError: 66013] [Line:10 Column:1]
JavaScript
var FSO = new ActiveXObject("Scripting.FileSystemObject");
var foldername = "D:\\"
var rptname;
with (new Date) {
rptname = ((((getFullYear() * 100 + getMonth() + 1) * 100 + getDate()) * 100 + getHours()) * 100 + getMinutes()) * 100 + getSeconds();
if (FSO.FolderExists(foldername))
var fileName = foldername + "\\" + Parameter(1);
var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
else
FSO.CreateFolder(foldername);
var fileName = foldername + "\\" + Parameter(1);
var fooFile = FSO.CopyFile(Parameter(0), fileName, true);

Adobe does not consider this a 'safe' menu item and has removed from the list of menu items that can be executed. There is more information available in Acrobat JS API Reference.

Similar Messages

  • Excel 2007 and 2010 slow to save to network drive with Windows 7

    I know this issue has been passed around and I know that there are some fixes out there. I will lay out my issue and resources, what I've tried and the things I've noticed.
    I have a mix of Server 2003 32bit, 64 bit and 2008 64 bit. The desktop/laptop environment is mainly XP (no issues saving with an XP machine), a few Win 7 computers and a dozen thin clients running off the 2008 TS. The slow saving issue happens with either
    a Win 7 machine or a client terminal served into 2008. It takes 60 seconds or more to save or "save as" an excel file to a network drive. Same thing happens with any Office product. No issue saving to the local machine. If you log into either 7 or
    TS with the domain admin account, the saving takes no time at all. Only as a domain user does it hang.
    I have tried the SMB2 trick, the 981711 hotfix, turning off indexing and starting the webclient service. I am probably forgetting a trick or two that I've seen online from various people having the same issue. Point is though, the issue remains and besides
    being utterly annoying, it is preventing me from rolling Windows 7 out to my employees. Please Help. Thank you in advance for any advice posted

    Hi,
    Have you tried to create a new txt file with notepad to test this issue? If this issue also happens on .txt file, you should check your network.
    And I suggest all users disable their anti-virus to see if the problem goes away.
    There are other things to try if the problem is evident in all of the documents you open. When EXCEL is not running, make sure you delete all the temporary files that
    EXCEL may have left lying around various folders in your system. Look for files that end with the TMP extension, or files that being with the tilde (~) character. If your file folders become very cluttered with these temporary files, it can slow EXCEL down
    immensely.
    Another thing to try is to start EXCEL with the
    /a switch on the command line. This causes it to load without also loading different startup files such as add-ins and macros. If this fixes the problem, then you can bet that the slowdown is caused by one of those add-ins or macros.
    You might also rename the Normal.dot (or Normal.dotm) file; if it is corrupted then it can slow down response times. (Renaming the file causes Word to create a clean,
    fresh, empty one the next time you start the program.)

  • File save to networked drive takes a long time

    I have been putting up with a real slowness with saving files in DW CS4. The save of a file is to a local network drive (H: drive).  I can use other apps like a text editor and saving a file to the same drive is pretty near instant.  But when I save a .cfm file in DW to the same drive it will often take 30 sec to up to 5 minutes...all of which is unacceptible for me.  It's not every file either that is taking the same delay in time to save.  It doesn't seem related to file length either.  I have a file just now that is 47 lines of CF code, I saved it and it took about 3 or 4 minutes.
    What is going on?  Is this DW doing some funcky syntax checking or web standards checking or is it our network issue?  If this is a configuration issue I'd sure like to know how to fix this. It's extremely annoying as I forget my train of thought by the time the file has saved.
    All suggestions welcomed!

    Well I probably should have checked around here some more. Just talked to someone in our IT dept. and they believe (unproven theory) that it is likely our network configuration and design. However if you have a few things to try to eliminate any other possibilities I'd like to hear them.

  • Save Dialog - network drives

    Hi,
    For some time I have had an issues using the Adobe "Save as" Dialog in Photoshop CS3.  If I switch to use this dialog the "save" button is greyed out when I am trying to save to a network drive (a ReadyNAS box).  If I change to the OS dialog it is not greyed out and the save works fine.  Is this a feature or a bug or incorrect configuration?  Not least does it happen to anyone else?

    I'm not seeing that behavior with Photoshop CS3.  I just tried it on a Vista x64 test system.
    Photoshop in general does not like you to use network drives.  They really want you to save the file locally, then copy it to/from network resources yourself.  The thinking seems to be that if you work from a share and keep your master files there, the chance of you losing your work is MUCH greater than if you're saving to a hard drive.  That said, I've never had a problem saving directly to a share.
    Have you tried pressing the button anyway?
    Do you have permissions to write files to the folder you're pointing to?
    -Noel

  • OneKey Recovery 8.0 - save to network drive

    Hi together,
    just wanted to do a system backup on my lenovo idal-pad using OneKey Recovery 8.0 facing this issues:
    1. The inital provided D:\ drive has a size of 20 GB. The size needed for the system back-up is about 30 GB.
        Somehow the initial D:\ drive should be better between 50-100 GB.
    2. Since the D:\ drive was to small I tried to save the back-up on my local NAS-server.
        OneKey Recovery don't allow to use a backup-link to the NAS-server like \\<server>
        Bypass-Solution:  I connected NAS-server via NetDrive and made a virtual local device name like M:\
                                         This was accepted by OneKey.
    @ Lenovo - team
    -> is there the idea to enable back-up directly  via \\<server>\ link?
    -> would it be better to provide a bigger initial D:\ ?
    best regards
    MarkRose

    I may be misunderstanding something. You say the flash drive is 32GB and you are backing up 72GB onto it, and the computer says it is only seeing 24GB's? is this correct?
    Hoov
    Microsoft MVP - Consumer Security
    SpywareHammer.com

  • Issue on How to mimic Deski document from CMS to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Would you know if there's a way to mimic Deski
    document from BOXI server(CMS) to local machine, pass parameter, execute and
    save in a mutiple report format then store in a local drive or network
    drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence.  Please let me know your ideas. I would really appreciate your help. Thanks.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

  • How to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    To Guru's, Would you know if there's a way to mimic Deski document from BOXI server to local machine, pass parameter, execute and save in a mutiple report format then store in a local drive or network drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only.  Please let me know your ideas. I would really appreciate your help. Thanks. 

    Give Chronosync a go - have been using for over a year and it works great; if you like Syncback you'll like this app.

  • MS Office documents locking itself when user is trying to save it on a network drive.

    As the subject states I am having a issue with a user that when he is trying to save a document it is stating that the file is in use by another user.... for every single document he tries to save to.
    I made a test account and assigned it to the same domain group and it does the same thing but the user said this didn't start happening until a few days ago and nobody changed the groups NTFS permissions for this folder.
    I checked the file server for file locks and it is stating that he is the one locking it with read/write permissions.
    He can save to other documents fine that is non MS Office related, and if he opens the file going through the MS Office program instead of opening it from the windows explorer viewer it saves fine.
    Now I looked at his NTFS permissions since another department at my job seems to think this is NTFS related but he has read/write/modify access but does not have access to delete.
    When I give him the access to be able to delete in this folder everything works fine but I don't feel the risk is justifiable to give him access to delete files just so he can save MS Office documents when he should be able to save to begin with.
    I tried looking on the internet for a couple hours and couldn't find anything that quite fit this situation.
    Any help would be appreciated.

    Hi Jonathan,
    You would need to user Adobe creative cloud packager which creates an installation package and deploy to users machines. i assume, you are installing Adobe creative cloud desktop app from a network drive which is not recommended.
    Creative cloud packager workflow: http://helpx.adobe.com/creative-cloud/packager.html?t2
    Thanks,
    Ashish

  • Can't save to mapped drive, Save disabled for any network location - Photoshop CS3 on Win 7 x 64

    This just started Saturday.  Has worked for a long time.  I did not change anything as far as I can tell.
    Win 7 x 64
    Intel I5 with 6gigs of ram
    I have a few drives that are mapped and I though this was the issue but when I am using Photoshop any time I click "Save As" and navigate to network drive, mapped or any shared folder on the network the Save button instantly gets greyed out. When I navigate back to any local hard drive the grey button turns back to normal (aka active).
    I am at a loss as I can't find any information on the internet.
    Strange that it has been working fine until 2 days ago.
    The only option now is to save to local HD then manually move files to networked computer.
    Any help would be appreciated.

    Can you save to a UNC name?  E.g., \\SERVER\SHARE\Folder\File.ext
    If so, this can possibly serve as a workaround.
    Has your network admin changed any of the file, folder, or share permissions recently?
    FYI, I just tried saving to a mapped network drive with  Photoshop CS5 12.0.2... No problem.
    -Noel

  • Unable to save images from image preview or photoshop to network drive

    Hello,
    I have an issue when viewing an image file from image preview or photoshop and saving it to a mapped network drive. When trying to save it to the drive, I am met with the error "You don't have sufficient access privileges". However, I am able to save the image to my desktop THEN place it in my mapped network drive.
    This has left me pretty puzzled. Has anyone else run into this issue? It was working fine a couple of months ago, and I thought it might correct itself. The issue remains at large. I am not sure why it would stop working, but still works if I click and drag files to it.

    Your assumption is correct.
    The workflow is:
    Select Image in Aperture for external editing.
    Send Image to external editor via one version of Aperture's "Edit with NameOfExternalEditor" command.
    Aperture creates a new Original based on the selected Image and opens specified external editor with the Original loaded.
    You make changes to this file in the external editor.
    You close this file and select "Save Changes" (or similar) when prompted.
    You return to Aperture and find an Image based on the newly-created Original selected.  This Image shows the changes you made in the external editor.  It is badged with Aperture "Edited externally" badge.
    Let's check a couple of things:
    - Are you showing all Images in the Aperture Browser?
    - Are there any externally-edited Images in the Project after you have completed editing in Photoshop?
    For the first, clear any filter you have set for the Browser by clicking the dark-on-light drop-down magnifying glass icon _in_ the Browser search field and selecting "Show All".
    For the second, filter for externally edited Images by clicking the dark-on-light magnifying glass icon _next to_ the Browser search field and setting a filter with the Rule "File Type" set to "is", "externally edited".
    Report back.

  • "Save" not working on network drives in Lion?

    Hey everyone. Ran into an odd issue yesterday.
    We have a user at one of our graphics locations that recently upgraded to a new iMac with 10.7 since her old machine died. They have multiple network drives that they use. These are windows 2003 R2 servers.
    On 10.6 if they had a PDF open in Acrobat or a Quark job open (one that they opened from the server)... they could just do a command + s and save the file to the same location. Now, when they do a command + s it brings up the save as window and they have to navigate back to the folder where the original file was stored. In some instances, there are so many jobs and multiple versions of the job for a customer, that can take a long time to navigate back.
    Is there a quick setting to turn this off or is this something new that was implemented in 10.7 that they need to deal with?

    I'm afraid you hit it on the head.  This is indeed one of the "new features" in the Lion version of OS X.  I do not personally know of a workaround for this.
    Hope this helps

  • Networked Drive: An error occurred while trying to save your photo library

    I just upgraded to iLife '08. After opening iPhoto '08 I began editing Events. After some merging and adding titles I got this error:
    +"An error occurred while trying to save your photo library"+
    My iPhoto Library is on a networked drive connected to another Mac. Both Macs are on the same switch and there appears to be no issues copying and deleting files and folders outside of iPhoto. Even inside iPhoto, this error is inconsistent, it happens on some changes and not others. I've had this setup for about three years with no issues in previous versions of iPhoto.

    There's a strong chance that the problem is the format of the server. Event though the Mac can read and write to FAT formatted drives, there are file name length issues that can really mess up a library or other files.
    If you really want to have an error free setup use a server that's formatted for Mac OS X (journaled).
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How to save the report file in network drive

    Hi experts,
    Can any one of you pls tell me how can  save the report file in network drive.
    My requirement:
    by running a report i wll get daily data into a list.SO, i want to keep this in a common drive (network drive:Z) where every one can acces the txt file.
    I want the code in SAP to design this.
    Awaiting for an early reply.

    Is the Z drive in the application or presentation server ?
    make sure the server has write access to the required folder
    for presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename              = 'c:\test_xls.xls'
        filetype              = 'ASC'
        write_field_separator = 'X'
      TABLES
        data_tab              = itab.
    for the application server, use
    data: outfile(120).
      OPEN DATASET outfile FOR APPENDING IN TEXT MODE ENCODING DEFAULT.

  • Trying to save preferences to a network drive (no local drives available).

    I'm on a virtual desktop with no local drives.  Captivate 8 is telling me that I can't save Preferences, Projects, or Cache items to a network drive.  I have no choice in the matter.  Any ideas how I can get around this?  Thanks.

    You're stuck. The computer you are currently using is not suitable for running Captivate. You need to get one with local drives and which allows you to run the app as an administrator.

  • How to Save Background job report out put in local / Network Drive?

    Hello Techies,
    How to Save Background job report out put in local / Network Drive.
    Actually we have option to send mail aftr complete but  i need to save in local drive or network drive .

    Hi ,
    Background job runs in application server , and your local /network drive is basically presentation server. So you cant save it in local /network drive from the job itself. But to download files, you can write the files to the application server using DATASET, in the background and then use the transaction CG3Y in the foreground to download the file.

Maybe you are looking for