WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: krasdude on February 02, 2015, 12:08:36 PM

Title: Weird FileItemize Results
Post by: krasdude on February 02, 2015, 12:08:36 PM
Kinda stumped here ... I am getting strange results from FileItemize ..

Using this code:

  dirchange("c:\windows\system32")
  a = FileItemize("ea*.*")
  message("",StrReplace(a,@TAB,@CRLF))
  exit

I get attachment 1 in attached docx.

If I do the DOS equivalent in a command windows, I get attachment 2.

Any idea why WinBatch is not seeing 2 of the files?

Thanks

Michael

Title: Re: Weird FileItemize Results
Post by: td on February 02, 2015, 01:13:00 PM
Nothing too strange about it because very likely that you have encountered file redirection.  Please read the following Tech. Database article:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/64-bit+File~Redirection.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/64-bit+File~Redirection.txt)


Pay special attention to the 'sysnative' discussion.