WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: naholt on August 26, 2017, 07:22:48 AM

Title: Winbatch does not see "C:\Windows\System32\OEM"
Post by: naholt on August 26, 2017, 07:22:48 AM
i am trying to write a script to change out the oem logo. the first thing i want to do is to verify that "C:\Windows\System32\OEM" exists:
  Path = "C:\Windows\System32\OEM"
  If DirExist(Path)
  message("works", "there")
  else
  message("fails", "where is it")
   endif
To my surprise Winbatch does not see it.  To my knowledge and research this folder is not unique.  any ideas why winbatch does not see it.  by the way the folder is there and its not hidden
thanks
Nicholas
Title: Re: Winbatch does not see "C:\Windows\System32\OEM"
Post by: td on August 26, 2017, 08:08:04 AM
File redirection has been a part of the Windows Operation System for over 10 years.

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)

One thing the article does not state is that in most cases Sysnative is the better choice.
Title: Re: Winbatch does not see "C:\Windows\System32\OEM"
Post by: naholt on August 26, 2017, 08:20:40 AM
that worked thanks