|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Jul 2000
Posts: 257
|
I'm trying to make a batch file and I'm not having any luck.
I have a template file called: BORDER TEMPLATE.dwg I want to copy this file and rename it 42 times to this: LOT 1 CHELTENHAM ESTATES PLOT PLAN.dwg LOT 2 CHELTENHAM ESTATES PLOT PLAN.dwg ... LOT 42 CHELTENHAM ESTATES PLOT PLAN.dwg Now, I found this code somewhere, and it looks like what I need, but when I run the bat file, only one file gets created and I get an error saying that XSET is not a recognized command. Any idea how I can rectify this? Code:
:: SEQ.bat :: Copies Files in Sequential Order :: Makes 42 Copies :: @ECHO OFF SET NUMBER=1 :AGAIN COPY "G:\Drawings\CHELTENHAM ESTATES\PLOT PLANS\BORDER TEMPLATE.dwg" "G:\Drawings\CHELTENHAM ESTATES\PLOT PLANS\LOT %NUMBER% CHELTENHAM ESTATES PLOT PLAN.dwg" > NUL XSET /MATH NUMBER=%NUMBER% + 1 IF NOT "%NUMBER%" == "42" GOTO AGAIN :END SET NUMBER= |
|
|
|
|
|
#2 |
|
Member (9 bit)
Join Date: Jul 2000
Posts: 257
|
Problem solved.
I had to download XSET - shareware program and put the files into the same directory as the bat file. Works like a charm! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|