Solved

CMD batch file.

Posted on 2013-01-06
5
380 Views
Last Modified: 2013-01-28
I want to save the result of the CMD batch file in a location of my choice.

TheCMD batch file I have created results in some excel files which are stored in temp folder.

But i want to save it somewhere else like C\temp\xyz.

so that all my excel files are saved into xyz folder.


I have tried to change the path from C\temp\ to C\temp\xyz but does not help-
0
Comment
Question by:AmmarDJ
5 Comments
 
LVL 8

Expert Comment

by:Scott Thompson
ID: 38748907
What is the command that you are trying to use?  For some directories, you have to make sure you are using an Elevated Prompt.
0
 
LVL 19

Accepted Solution

by:
deroode earned 500 total points
ID: 38750066
How does your batch file determine where to store it's output? Can you post your batch or the part that does the storing?
0
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 38750243
Did you realy try to save to C\temp\xyz?
if that is the case, add a colon C:\temp\xyz
0
 
LVL 5

Expert Comment

by:Imran Saeed
ID: 38750432
as deroode mentioned please post your batch file and let us have look at it.
0
 
LVL 24

Expert Comment

by:lionelmm
ID: 38750680
If you have a command test.bat that does some things, and what you want to save it what you would see on screen then you can simply run the command
C:\Utils\Test.bat >C:\temp\xyz\Test.log
However if you want the results of the processes run in your file test.bat, let say a created file then as others have suggested please show us what those processes are.
0

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.

Join & Write a Comment

Suggested Solutions

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

13 Experts available now in Live!

Get 1:1 Help Now