Solved

CMD batch file.

Posted on 2013-01-06
5
435 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 25

Expert Comment

by:Lionel MM
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 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