• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

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

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.
0
cgooden01
Asked:
cgooden01
  • 2
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
Have it store to a UNC or a mapped drive.
0
 
xDUCKxCommented:
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
\\misc.domain.com\etc\filename.exe >> \\misc.domain.com\output\output.log

Open in new window

0
 
cgooden01Author Commented:
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.
0
 
Paul MacDonaldDirector, Information SystemsCommented:
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
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now