creating a file in a specific directory with a batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
XoX
Posts: 1
Joined: 11 Apr 2014 13:17

creating a file in a specific directory with a batch file

#1 Post by XoX » 11 Apr 2014 13:29

Ok,
So I'm trying to make a batch file that creates a file in a specific location, so far the file looks something like:

ECHO mytexthere >myfilenamehere.fileextensionhere

Very simple :p
But this only creates a file under the same address as the batch file that gives it life.
fI anyone could help me out by specifying what I'd need to include to save this file elsewhere please reply.

Thanks, XoX. xoxo

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: creating a file in a specific directory with a batch fil

#2 Post by Squashman » 11 Apr 2014 13:35

echo mytext>"C:\path to folder\some folder\myfile.txt"

Post Reply