[SOLVED]I Need help with batch
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Forum rule Nº 15 is strictly enforced in this subforum.
[SOLVED]I Need help with batch
I solved this like a week ago. This can be locked or whatever.
Thnx. (I guess)
Advertising
Last edited by ReaperX on Tue Apr 12, 2011 11:24 pm, edited 1 time in total.
- PSP Information
Re: I Need help with batch
I am assuming that by "Batch" you mean Windows... I had actually tried to do the same thing in the past but I soon realised that there is no way to do it appart from using a kinda stupid method: Open the file normally... Copy the contents... Paste them in your window... (As user input..) Check the user input... In other languages I'd use a streamreader but in batch...Well that's the only method I can think of...ReaperX wrote:I'm a really experienced batch programmer. Yes I said programmer. When I'm bored I program applications in batch. Anyway for one application I'm making I made a settings option for color. What I want to do is have the user select the colors and then it will save a command based on the colors selected to a txt file. Then I will have another command at the base of the file that will check if the txt file exists before executing it.
I've got the settings and the selector set up. Now If someone will kindly tell me how to make it read a command in a txt file and execute it I can do the rest. Can you help?
Advertising




Re: I Need help with batch
Ok. Thnx anyway.
- PSP Information
Re: I Need help with batch
There are many things at which Windows sucks, and Batch is king among them.
I wanna lots of mov al,0xb

"just not into this RA stuffz"

"just not into this RA stuffz"
Re: I Need help with batch
If you cannot read a parameter from a text file, how about saving a batch file with the whole command + parameter in it? Then you just have to execute that file from your main script and the effect should be the same.
Re: I Need help with batch
@moskit0 I know but I don't want to learn C++ and I'm good at batch.
@JJS thnx ill try that
@JJS thnx ill try that
- PSP Information
Re: I Need help with batch
Windows Batch is not programming.
You can also pass arguments/parameters to the batch file as well. You might want to check that out.
You can also pass arguments/parameters to the batch file as well. You might want to check that out.
I wanna lots of mov al,0xb

"just not into this RA stuffz"

"just not into this RA stuffz"
- 6.20TN(HEN)
- Posts: 164
- Joined: Wed Nov 24, 2010 4:04 pm
- Location: With you fellow procrastinators
Re: I Need help with batch
true. it is basically typing cmd commands for you. nice for easy repetitive tasks. ie. clearing temp, running text-based java apps.m0skit0 wrote:Windows Batch is not programming.
java is the best programming language because of multi platform compatibly without changing code.
PSP 3000- 6.20 Perm. Pro B8


Re: I Need help with batch
Yeah, it is a type of scripting. By the way, there is no such thing as "the best programming language".6.20TN(HEN) wrote:true. it is basically typing cmd commands for you. nice for easy repetitive tasks. ie. clearing temp, running text-based java apps.m0skit0 wrote:Windows Batch is not programming.
java is the best programming language because of multi platform compatibly without changing code.
Re: I Need help with batch
Yeah, letting aside the fact that is slower than a snail6.20TN(HEN) wrote:java is the best programming language because of multi platform compatibly without changing code.
+1waratte wrote:By the way, there is no such thing as "the best programming language".
I wanna lots of mov al,0xb

"just not into this RA stuffz"

"just not into this RA stuffz"

