search pos index and move file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
Ed Dyreen
Expert
Posts: 1441
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: search pos index and move file

#16 Post by Ed Dyreen » 07 Jun 2012 09:48

'
@foxidrive, I've been meaning to ask why you involve the type command

Code: Select all

for /f "delims=" %%? in ( 'type "file"' ) do 
when you could just

Code: Select all

for /f "usebackq delims=" %%? in ( 'file' ) do 
Isn't the result like exactly the same :|

foxidrive
Expert
Posts: 6033
Joined: 10 Feb 2012 02:20

Re: search pos index and move file

#17 Post by foxidrive » 07 Jun 2012 10:04

Ed Dyreen wrote:'
@foxidrive, I've been meaning to ask why you involve the type command

Code: Select all

for /f "delims=" %%? in ( 'type "file"' ) do 
when you could just

Code: Select all

for /f "usebackq delims=" %%? in ( 'file' ) do 
Isn't the result like exactly the same :|


No magic reason, I never have to type usebackq

Post Reply