Solved

Dos Command file file access

Posted on 2014-09-10
2
192 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
[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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
Progress

705 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