?
Solved

Dos Command file file access

Posted on 2014-09-10
2
Medium Priority
?
195 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 2000 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

Technology Partners: 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

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.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

762 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