Printable Version | Subscribe | Add to Favourites
New Topic New Poll New Reply
Author: Subject: Quick PC script needed
MK9R

posted on 15/8/11 at 10:10 AM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
RichardK

posted on 15/8/11 at 10:31 AM Reply With Quote
So what do you want the script to do ??





Gallery updated 11/01/2011

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
MK9R

posted on 15/8/11 at 10:49 AM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
bmseven

posted on 15/8/11 at 12:40 PM Reply With Quote
Might help if you listed the commands of robfacein





BMW 7 Resource
Bures Pit anyone?

View User's Profile Visit User's Homepage View All Posts By User U2U Member
MK9R

posted on 15/8/11 at 01:10 PM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
scudderfish

posted on 15/8/11 at 01:41 PM Reply With Quote
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






View User's Profile View All Posts By User U2U Member
scudderfish

posted on 15/8/11 at 01:42 PM Reply With Quote
Ah, list in a file rather than a list of files. Hmmmm.... I'll have a think.






View User's Profile View All Posts By User U2U Member
MK9R

posted on 15/8/11 at 01:44 PM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
scudderfish

posted on 15/8/11 at 01:51 PM Reply With Quote
for /f %%a IN ('type foo.txt' ) do echo %%a

That should get you started.

[Edited on 15/8/11 by scudderfish]






View User's Profile View All Posts By User U2U Member
MK9R

posted on 15/8/11 at 01:53 PM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
bmseven

posted on 15/8/11 at 01:59 PM Reply With Quote
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?

View User's Profile Visit User's Homepage View All Posts By User U2U Member
scudderfish

posted on 15/8/11 at 03:12 PM Reply With Quote
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






View User's Profile View All Posts By User U2U Member

New Topic New Poll New Reply


go to top






Website design and SEO by Studio Montage

All content © 2001-16 LocostBuilders. Reproduction prohibited
Opinions expressed in public posts are those of the author and do not necessarily represent
the views of other users or any member of the LocostBuilders team.
Running XMB 1.8 Partagium [© 2002 XMB Group] on Apache under CentOS Linux
Founded, built and operated by ChrisW.