CMD batch file.

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-
Who is Participating?
deroodeConnect With a Mentor Systems AdministratorCommented:
How does your batch file determine where to store it's output? Can you post your batch or the part that does the storing?
Scott ThompsonComputer Technician / OwnerCommented:
What is the command that you are trying to use?  For some directories, you have to make sure you are using an Elevated Prompt.
MurpheyApplication ConsultantCommented:
Did you realy try to save to C\temp\xyz?
if that is the case, add a colon C:\temp\xyz
Imran SaeedIT Technical DirectorCommented:
as deroode mentioned please post your batch file and let us have look at it.
Lionel MMSmall Business IT ConsultantCommented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.