Search found 53 matches

by tcpman
07 Mar 2014 12:40
Forum: DOS Batch Forum
Topic: output problem
Replies: 2
Views: 2380

output problem

hi all this is my code echo name=%name% >>data.txt echo lastname=%lname% >>data.txt echo grade=%grade% >>data.txt echo Class=%Class% >>data.txt echo phone=%phone% >>data.txt now the output of data.txt is something like this name=34 lastname=34 grade=34 Class=34 phone=34 i want to be this name=34 las...
by tcpman
07 Mar 2014 10:30
Forum: DOS Batch Forum
Topic: some questions
Replies: 14
Views: 8541

Re: some questions

yes tnx

Code: Select all

@echo off
echo going to function
call:function
echo ...

:function
echo function test
PAUSE
goto :EOF

its now work well
by tcpman
07 Mar 2014 09:41
Forum: DOS Batch Forum
Topic: some questions
Replies: 14
Views: 8541

Re: some questions

this is my code

Code: Select all

@echo off
echo going to function
call:function
echo ...

:function
echo function test
goto:EOF


the output is
going to function
function test
now i think the output must be
going to function
...
function test
by tcpman
07 Mar 2014 09:01
Forum: DOS Batch Forum
Topic: some questions
Replies: 14
Views: 8541

Re: some questions

i just want to learn the for command
ok i think asking for this exmaple is better

ok how we can make a input and then if it was DOSTIPES
turn that to dostips
case sentence!

i saw a exmaple on that but culdnt understand it

and can you answer the function question?
by tcpman
07 Mar 2014 08:16
Forum: DOS Batch Forum
Topic: some questions
Replies: 14
Views: 8541

Re: some questions

oh yes sory
for /l %%a in (1,1,10) do rename c:\prodata\*.txt %%a.txt
ok
so for exmaple i want the files in prodara folder be something like this
before runing for command
text.txt
erer.txt
etet.txt
after runing for command
1.txt
2.txt
3.txt
by tcpman
07 Mar 2014 07:41
Forum: DOS Batch Forum
Topic: some questions
Replies: 14
Views: 8541

Re: some questions

tnx but i use the cmd for help and that site but still could not understand for exmaple why this is not working? for/l %%a in (1,1,10) do rename %%a i make a batch file in a folder and then i run it it but its not renaming the files on that folder what part of my code is need to get fixed? and about...
by tcpman
07 Mar 2014 02:39
Forum: DOS Batch Forum
Topic: some questions
Replies: 14
Views: 8541

Re: some questions

wow tnx
does anyone have a guide about for command?
by tcpman
06 Mar 2014 08:34
Forum: DOS Batch Forum
Topic: some questions
Replies: 14
Views: 8541

some questions

i have some questions hope i can find a answer on here 1-fist is there any good quide about for command? 2-what is diffrence between label and a function in batch? for exmaple @echo off echo welcome goto label1 :label echo test :label1 echo test 2 exit this is label or a function?i think there is no...