Posted on 2008-11-07
Last Modified: 2012-05-05
How do you write a VBScript that will copy a file to a 2nd location?

I have a report that has been created in Crystal Reports XI. I want to export the Report as a .txt or a .pdf daily. Afterwhich I want the file copied to a desired location. Is this possible?

Thank you
Question by:CLDE777
    LVL 29

    Expert Comment

    by:David H.H.Lee
    Hi CLDE777,
    Yes, it possible. You can use File object to solve this task.
    Please see this PAQ and amend it based on your existing solution:

    Author Comment

    I will test this out.

    Thank you
    LVL 100

    Accepted Solution

    Depending on how you are doing the export you should be able to specify the location of the exported file.


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
    For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now