MK9R
|
posted on 15/8/11 at 10:10 AM |
|
|
Quick PC script needed
Ok i give up, i've tried and failed, mainly because i'm useless at things like this
I have a directory of files that i need to run the same command script on (its a CAD import thing), i just need a simple command script that i can run
that will do this for me rather than typing it in over and over again, can anyone help, please!!!!
Cheers Austen
RGB car number 9
www.austengreenway.co.uk
www.automatedtechnologygroup.co.uk
www.trackace.co.uk
|
|
|
RichardK
|
posted on 15/8/11 at 10:31 AM |
|
|
So what do you want the script to do ??
Gallery updated 11/01/2011
|
|
MK9R
|
posted on 15/8/11 at 10:49 AM |
|
|
run a command that i normally run in a command prompt window "robfacein file.name"
I have just found for %f in (*) do robfacein %f which works, but would like to make it run on a list in a file rather than just the files in the
directory
Cheers Austen
RGB car number 9
www.austengreenway.co.uk
www.automatedtechnologygroup.co.uk
www.trackace.co.uk
|
|
bmseven
|
posted on 15/8/11 at 12:40 PM |
|
|
Might help if you listed the commands of robfacein
BMW 7 Resource
Bures Pit anyone?
|
|
MK9R
|
posted on 15/8/11 at 01:10 PM |
|
|
quote: Originally posted by bmseven
Might help if you listed the commands of robfacein
"robfacein" in is the command
Cheers Austen
RGB car number 9
www.austengreenway.co.uk
www.automatedtechnologygroup.co.uk
www.trackace.co.uk
|
|
scudderfish
|
posted on 15/8/11 at 01:41 PM |
|
|
Knocking the cobwebs out of my head, I think it is something like
for %f in (%1 %2 %3 %4 %5 %6 %7 %8 %9)
that you want
|
|
scudderfish
|
posted on 15/8/11 at 01:42 PM |
|
|
Ah, list in a file rather than a list of files. Hmmmm.... I'll have a think.
|
|
MK9R
|
posted on 15/8/11 at 01:44 PM |
|
|
quote: Originally posted by scudderfish
Ah, list in a file rather than a list of files. Hmmmm.... I'll have a think.
yeah, got the list of files i want to convert, just need to send the command to all the files
Cheers Austen
RGB car number 9
www.austengreenway.co.uk
www.automatedtechnologygroup.co.uk
www.trackace.co.uk
|
|
scudderfish
|
posted on 15/8/11 at 01:51 PM |
|
|
for /f %%a IN ('type foo.txt' ) do echo %%a
That should get you started.
[Edited on 15/8/11 by scudderfish]
|
|
MK9R
|
posted on 15/8/11 at 01:53 PM |
|
|
cheers. whast all the "foo" business i keep seeing when searching on the internet?????
Cheers Austen
RGB car number 9
www.austengreenway.co.uk
www.automatedtechnologygroup.co.uk
www.trackace.co.uk
|
|
bmseven
|
posted on 15/8/11 at 01:59 PM |
|
|
Couldnt you put it in a script file and use a directory lister to output/edit the list of files to use in the script.
robfacein File_01.co
robfacein File_03.co
BMW 7 Resource
Bures Pit anyone?
|
|
scudderfish
|
posted on 15/8/11 at 03:12 PM |
|
|
quote: Originally posted by MK9R
cheers. whast all the "foo" business i keep seeing when searching on the internet?????
When coders need a random name for a couple of things, they'll use 'foo' and 'bar'; which derive from FUBAR. F*cked Up
Beyond All Recognition. See also SNAFU
|
|