Search found 7 matches

by leescott
14 Nov 2011 18:50
Forum: DOS Batch Forum
Topic: move files according to folder
Replies: 7
Views: 6689

Re: move files according to folder

' try this, I didn't test it because I have work to do sorry things are vague, I can't see why it wouldn't work, (pm) if you want to draw attention just bump your post, but not too often and only after a few days, otherwise you'll just upset the community. @echo off &SetLocal EnableExtensions E...
by leescott
12 Nov 2011 05:53
Forum: DOS Batch Forum
Topic: How to check if parameter is file (or directory)?
Replies: 8
Views: 14187

Re: How to check if parameter is file (or directory)?

I'm not expert . I see such one bat: @echo off if exist test\nul (echo FOLDER) else echo FILE pause goto :eof @echo off pushd test 2>nul&&echo FOLD||echo FILE popd pause goto :eof @echo off set "cur_dir=%cd%" cd /d test 2>nul&&echo FOLDER||echo FILE cd /d "%cur_dir%&qu...
by leescott
11 Nov 2011 23:33
Forum: DOS Batch Forum
Topic: move files according to folder
Replies: 7
Views: 6689

Re: move files according to folder

Thanks!
Maybe I'm too eagerly to get correct answer,I'm sorry for my actions.
In the bat ,no "move",no work.
by leescott
11 Nov 2011 01:01
Forum: DOS Batch Forum
Topic: move files according to folder
Replies: 7
Views: 6689

Re: move files according to folder

How to combine two codes together? How to make last code use "%%i""%%j" gotten from first code? Thanks for your help! @echo off for /f "usebackq tokens=1,2 delims= " %%i in (b2.txt) do(echo %%i %%j) for /f "delims=" %%k in ('dir /s/b/a-d E:\JP-WKA\*.pdf E:\JP-...
by leescott
10 Nov 2011 19:42
Forum: DOS Batch Forum
Topic: move files according to folder
Replies: 7
Views: 6689

Re: move files according to folder

please help me! I edit it as next,but it don't work.What's wrong? I guess wrong may be in "for /f "delims= tokens=1,2" %%i in (b2.txt) do ( 'echo "%%i" "%%j"'|". But I can't find key to answer. @echo off for /f "delims= tokens=1,2" %%i in (b2.txt) do...
by leescott
06 Nov 2011 06:14
Forum: DOS Batch Forum
Topic: move files according to folder
Replies: 7
Views: 6689

Re: move files according to folder

' That code could never work, where is your do clausule ?: do ?? Thanks! My b2.txt like this: conformal coating memory device @echo off for /f "delims=* tokens=1-2" %%i in (b2.txt) for /f "delims=*" %%k in ('dir /s/b/a-d E:\JP-WKA\*.pdf E:\JP-WKA\*.txt ^| findstr /i "%%i %%...
by leescott
05 Nov 2011 19:08
Forum: DOS Batch Forum
Topic: move files according to folder
Replies: 7
Views: 6689

move files according to folder

I want to move files according to folder names.Some folder names have been writen in b2.txt. I'm foreign to DOS.And I learn a little,edit a bat like follow.Please give me some modification.Thanks!! @echo off for /f "delims= tokens=1" %%i in (b2.txt) for /f "delims= tokens=2" %%j ...