Search found 84 matches

by Mohammad_Dos
19 Nov 2010 07:27
Forum: DOS Batch Forum
Topic: How to go to this directory???
Replies: 8
Views: 7908

Re: How to go to this directory???

and now I have a new question.
How to copy some files to directory that the batch file is in it?

for example I runed a batch file and want copy all files in "D:\new Folder\Pic" to batch file directory
by Mohammad_Dos
02 Nov 2010 13:01
Forum: DOS Batch Forum
Topic: how to make directory with name of date
Replies: 3
Views: 4757

Re: how to make directory with name of date

thank u very much acun
by Mohammad_Dos
02 Nov 2010 04:23
Forum: DOS Batch Forum
Topic: how to make directory with name of date
Replies: 3
Views: 4757

how to make directory with name of date

Hello,
I want to make a directory with name of date

for example today is: 2010/11/02
directory name: 2010-11-02

or other type of names that show the date

thank u
by Mohammad_Dos
18 Sep 2010 04:09
Forum: DOS Batch Forum
Topic: Please explain me this
Replies: 1
Views: 3773

Please explain me this

please explain me this line by line: @echo off SETLOCAL=ENABLEDELAYEDEXPANSION rename test.txt test.tmp for /f %%a in (test.tmp) do ( set linecount=2 set foo=%%a if !foo!==Mohammad_Virus set foo=Abolfazl.E echo !foo! >> test.txt) del test.tmp and please explain a little about "for" command
by Mohammad_Dos
15 Sep 2010 08:44
Forum: DOS Batch Forum
Topic: How to go to this directory???
Replies: 8
Views: 7908

Re: How to go to this directory???

thank u very much !k and aGerman
by Mohammad_Dos
13 Sep 2010 10:02
Forum: DOS Batch Forum
Topic: How to go to this directory???
Replies: 8
Views: 7908

Re: How to go to this directory???

ok. thank u my first question answered. but my secont question not answered yet. please guide me new question: for example my batch file in this directory: d:\new folder I run the batch file and at last now in batch file we are in this directory: f:\ How to back to first directory in dos(d:\new fold...
by Mohammad_Dos
13 Sep 2010 05:44
Forum: DOS Batch Forum
Topic: How to go to this directory???
Replies: 8
Views: 7908

How to go to this directory???

Hi,
for example I want to go to this directory:
D:\my pic\new

I can use this:

D:
cd "my pic"
cd new



I want go to this directory just by one command line. What should I do?

or

for example in dos I have:

%dir%=d:\my pic\new

How to go to the directory in %dir%?
by Mohammad_Dos
09 Sep 2010 07:24
Forum: DOS Batch Forum
Topic: please explaine this for me
Replies: 2
Views: 3949

Re: please explaine this for me

thanks a lot :wink:
by Mohammad_Dos
08 Sep 2010 10:34
Forum: DOS Batch Forum
Topic: please explaine this for me
Replies: 2
Views: 3949

please explaine this for me

hi. I dont know much from Dos. please explaine me this. line by line @echo off :aa echo 1 = 1 echo 2 = 2 echo 3 = 3 echo 4 = 4 echo 5 = exit set /p yy=selection: if %yy% equ 5 goto :ex rem null option to exit? if "%yy%" equ "" goto :ex set yy=:menu%yy% call %yy% rem loop option h...