Argonath RPG - A World of its own
Argonath RPG Community => Hardware/Software support => Resolved issues => Topic started by: Ragdoll on August 02, 2014, 12:53:41 pm
-
Hello there.
I have a simple question that I have no idea where else to ask. I'm making a series of batch files that run a certain program on a certain file. The idea is, it's multiple copies of the same batch file in different folders. Each of those folders has ONE file in them that has a certain extension, and multiple other files.
I want to be able to just copy and paste the batch file into those folders and thus I want to find a way to replace the script inside the batch file to load the file that has that extension (since there's only one) without having to edit the script every time I add it to a folder to accommodate.
If my way of explaining is terrible, please do tell.
Regards.
-
What. The. Fu... uh
Okay, so you want a batch script that update's batch scripts which are exactly the same in different folders, more importantly you want this to be in the same batch file?
Perhaps it would be easier if you explained what it is you are exactly doing. Programmers think better when presented a problem, then we can possibly present another solution than using ghetto batch.
-
I read what I wrote again and I dearly apologize to everyone who read it. I could use a speech and communications course up in University when I go there.
Either way, figured a better way to explain:
I have a compiler for a 3D model for the Source Engine. And I have a shitlode of models I need to compile. Every model needs some files with it and there's a text file (with the extension ".qc") that controls how it compiles. Those text files always have the same extension but different file names and there's always just ONE in every model folder. I need to tell the batch file to use the compiler on the ".qc" file in any directory it's in. ("it" referencing the batch file)
What I've been doing so far:
1-Renaming every ".qc" file to the same name so I don't change the batch file.
2-Editing every copy of the batch file to accommodate the ".qc" file's name.
-
Hang on, will code you some stuff tonight that will solve your issue. I assume you are running windows 7 or 8 and that you can install visual studio if needed.
-
Hang on, will code you some stuff tonight that will solve your issue. I assume you are running windows 7 or 8 and that you can install visual studio if needed.
It'd be fantastic if you do. And yes, Windows 7 x64. While we're on the subject, it was recommended to me to learn VB before moving on to C; so where can one learn VB in a way where I don't get lost?
-
Just gonna' throw my two Ps in, if you need any help with QCs or a good ton of other Source Engine functions, give me notice.
-
It'd be fantastic if you do. And yes, Windows 7 x64. While we're on the subject, it was recommended to me to learn VB before moving on to C; so where can one learn VB in a way where I don't get lost?
http://msdn.microsoft.com/en-us/vstudio/hh388573.aspx
If you don't already know basics of programming, consider reading this first:
http://en.wikiversity.org/wiki/Introduction_to_Programming
http://en.wikiversity.org/wiki/Programming_Logic
They don't teach you really any language, but just get the tip of your feet wet in the concepts of how languages work.
-
Just gonna' throw my two Ps in, if you need any help with QCs or a good ton of other Source Engine functions, give me notice.
I've got the QC part down but if you're good at texturing a terribly UV-mapped weapon with the same style as TF2, hit me up.
http://msdn.microsoft.com/en-us/vstudio/hh388573.aspx
If you don't already know basics of programming, consider reading this first:
http://en.wikiversity.org/wiki/Introduction_to_Programming
http://en.wikiversity.org/wiki/Programming_Logic
They don't teach you really any language, but just get the tip of your feet wet in the concepts of how languages work.
Perfect. Thanks a lot. :)
-
Python is also super easy for stuff like this, I've done multiple projects with it.
-
I've got the QC part down but if you're good at texturing a terribly UV-mapped weapon with the same style as TF2, hit me up.
Perfect. Thanks a lot. :)
Sorry bruv, not my place. Best of luck.
-
Python is also super easy for stuff like this, I've done multiple projects with it.
I got myself well into Python about two years ago but it's slipped my mind entirely since then so re-learning it for something rather simple would be a pain. :|
Sorry bruv, not my place. Best of luck.
Much appreciated.