Search found 11 matches

by Odder93
18 Nov 2008 04:13
Forum: DOS Batch Forum
Topic: Replace string with enviroment variable
Replies: 4
Views: 6071

Re: Replace string with enviroment variable

Hi to all. I've this problem, i need to replace a string with enviroment variable on text file. This is my source code, but i don't know how replace env. variable : set DIR=c:\TEMP SET FILEPATH=e:\home\ SET FILE=e:\home\config.pro SET FNAME=config.pro CALL :PROCESS GOTO :EOF :PROCESS pushd %FILEPAT...
by Odder93
31 Jul 2008 03:32
Forum: DOS Batch Forum
Topic: Multiple commands per line
Replies: 5
Views: 11940

If you want to execute this on one line: echo Bla-bla-bla! Let us call dir? dir echo More-bla-bla-bla! shouldn't it be as simple as: echo Bla-bla-bla! Let us call dir? & dir & echo More-bla-bla-bla! works for me. ohh, that way I have read you should use "&" twice, as: echo Bla...
by Odder93
29 Jul 2008 11:49
Forum: DOS Batch Forum
Topic: auto kick persons from network?
Replies: 0
Views: 4524

auto kick persons from network?

How do I kick a person from my network?

I know the computer's name and I want to make a batch file which automatically search my network for the computer, and then kick the computer from my network :-)

It's a internet network through a modem.. is this possible with a batch script?

Thank you!
by Odder93
29 Jul 2008 11:31
Forum: DOS Batch Forum
Topic: Multiple commands per line
Replies: 5
Views: 11940

EDIT: I can't get example 2 working, but maybe someone know how it works :p in batch files and in CMD you can use: ( <command1> <command2> <command3> <etc.> ) This will operate each command at nearly same time and output will be showed line by line in CMD you can also use (If you are lucky i...
by Odder93
25 Jul 2008 07:05
Forum: DOS Batch Forum
Topic: [OFF TOPIC] Your relation to batch files
Replies: 2
Views: 3329

[OFF TOPIC] Your relation to batch files

I've been wondering what relations you guys have with bath files?

I just use it as a sparetime killer ;-)

best regards "Odder"
by Odder93
23 Jul 2008 11:30
Forum: DOS Batch Forum
Topic: Trying to implement a progress bar while Analog loads report
Replies: 4
Views: 4626

your error is in (just in case you didn't knew): call analog.exe +g"w20080606.cfg" -G +F080706:0001 +T080712:2359 and again i have a minor "improvement", I don't if this is useful in any ways, but instead of running a visual basic script, you could use the timeout function silenc...
by Odder93
23 Jul 2008 11:21
Forum: DOS Batch Forum
Topic: "FOR" help
Replies: 5
Views: 7179

Ok thanks again :D

The last was just to test your knownledge :wink:

and I see the problem in line 1, it might be one of the "random-error" I do :p
by Odder93
23 Jul 2008 11:15
Forum: DOS Batch Forum
Topic: Trying to implement a progress bar while Analog loads report
Replies: 4
Views: 4626

okay, I can't help you with the main problem... but I can make an improvement for the output thing set /a percentofloading=0 :loop if %percentofloading%==100 ( goto complete ) else ( cls %load% echo %percentofloading% %%% %wait% set /a percentofloading=%percentofloading% + 5 ) that's...
by Odder93
23 Jul 2008 11:04
Forum: DOS Batch Forum
Topic: Redirect output from curses application
Replies: 1
Views: 3824

First of all, I'm not sure I did understand the half of it xD but I will give it a try This will type the program code to somewhere.ext type myCursesProgram >> somewhere.ext This will type the progams outputs in somewhere.ext start myCursesProgram >> somewhere.ext That's the best I can do (right now)
by Odder93
23 Jul 2008 10:49
Forum: DOS Batch Forum
Topic: "FOR" help
Replies: 5
Views: 7179

Thanks for your reply So, if I want to make a command to: ... make the same file twice, at two different locations: FOR %a IN (%USERPROFILE%\desktop %USERPROFILE%\documents) DO echo start %CD% >> %a ... count to 20 FOR %a IN (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20) DO echo %a hmm.. I wo...
by Odder93
20 Jul 2008 03:17
Forum: DOS Batch Forum
Topic: "FOR" help
Replies: 5
Views: 7179

"FOR" help

Hello, I'm pretty new at this coding language, but I think I've got a bit experience :-)

My problem is: I do not understand ANYTHING of the "FOR" command, is it possible for you to explain me how that "function" works? I see it's very usefull xD