nonie Level: Trainee
 Registered: 25-08-2005 Posts: 3
|
Re: Need some help
Thank you for the reply. Yes, %1.000 is a plot file generated by microstation. It can be any program that can generate plot file (i.e. 1.plt - Autocad). I will try to use the code you provided. What i have in mind is something like this. A text box and a command button. When the user click the command button, a loop is executed. The loop is like this:
for i = 1 to val(textbox1)
run "c:\prt\print.bat "; i
next i
All the plot file must have a file name of 1.000, 2.000, 3.000 etc. If autocad plot file then 1.plt, 2.plt, 3.plt etc. The reason for this has something to do with the for next loop. When the counter is 1, get the 1.000 or 1.plt file, then run the batch file.
My batch file is copy %1.000 \\tfsspsrv\PCS1. When the counter becomes 2, get 2.000 or 2.plt file, then run again the batch file repeat again until all the plot file has been sent. You may notice that there are some hard coding here (ie c:\prt\print.bat and also i am forcing the user to name or rename their plot files to 1.00, 2.00, 3.00 etc. So my only problem here is how to put this code run "c:\prt\print.bat "; i
in proper VB code. the rest i can do. Our network printer has a PIN no. in order to print to it. I hope this is clear.
Thank you.
Lottie
|