Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - apae1004

Pages: [1]
1
Software / DOS Question
« on: December 15, 2008, 12:57:36 AM »
I want to create a text file looks like the below after typing in the following at DOS promt:
FOR /F %i IN (list.txt) DO sss.bat
-------------------
test1.sat
Saveas
test1.dwg
test2.sat
Saveas
test2.dwg
-------------------

Base on two files:

First one is "list.txt" which has two lines in it.
-------------
test1
test2
----------------
Second one is text file, but saved as *.bat: let's call it SSS.bat
---------------------------------
@echo %i%.sat >>TTT.scr
@echo Saveas  >>TTT.scr
@echo %i%.dwg >>TTT.scr
--------------------------------

Somehow I'm not getting the variables.
I end up getting TTT.scr looks like this:
-------------
.sat
Saveas  
.dwg
.sat
Saveas  
.dwg
-----------
What's wrong? Please be easy on this... probably this is something very, very simple. But, I can't see it.

Pages: [1]