Solved

Dos Command file file access

Posted on 2014-09-10
2
187 Views
Last Modified: 2014-09-10
I want to make a dos command line (.bat, .cmd) file that takes first argment and then


creates a filename containing % 1 and then creates and opens a new filename file  and writes to it a string that will also contain %1
0
Comment
Question by:smcsmc1
2 Comments
 
LVL 9

Accepted Solution

by:
Beartlaoi earned 500 total points
ID: 40315707
The shortest way to do that is
echo some text %1 more text >file%1.txt

Open in new window

0
 

Author Comment

by:smcsmc1
ID: 40316013
very good, I was trying to use the type cmd instead of echo, thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Advice in Xamarin 21 109
Help Required 2 46
learn programming 8 66
Is online banking safe? 11 81
This article will show, step by step, how to integrate R code into a R Sweave document
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

740 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