Running a exe from a network folder that stores the report on the c:\Temp

Posted on 2012-08-14
Last Modified: 2012-09-04
I havent created batch files in such a long time, so this is what im trying to do.  I would like to take a pre-existing batch file that is on a network share \\misc\etc.... that executes a exe  that currently stores the report of the exe to c\temp. I wouls like to develop a way that instead of it storing the report to the c:\temp that it could store it on a network shared folder.   Any Suggestions.
Question by:cgooden01
    LVL 33

    Expert Comment

    Have it store to a UNC or a mapped drive.
    LVL 13

    Expert Comment

    Ya, you'd have to recompile the EXE.  Using the batch file would be simple, but modifying how the EXE ouputs isn't something that would be user driven.

    you can try (but not guarantee that it will work):

    @echo off
    \\\etc\filename.exe >> \\\output\output.log

    Open in new window


    Author Comment

    We this recommended approach, I dont want merely a log file. The executable that is ran, compresses the results into a zip file, that i want xcopied on a network share as well.
    LVL 33

    Accepted Solution

    If you want the file copied to a network location (not what you asked for in your original post), edit the batch file so after the .exe runs it does...
         xcopy source_folder destination_folder

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    I have been working as System Administrators since 2003. I recently started working as a FreeLancer and was amazed to find out that very few people are taking full advantage of their Windows Server Machines. Microsoft Windows Server comes with so…
    I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
    This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
    This tutorial will show how to inventory, catalog, and restore media from legacy versions of Backup Exec into both 2012 and 2014 versions of the software. Select Storage from the tabs along the ribbon bar as the top: Ensure the proper storage devi…

    779 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

    12 Experts available now in Live!

    Get 1:1 Help Now