I am trying to write a batch script that will be placed in C drive but hide a folder in D drive. I can seem to hide the folder in D drive if I place the batch script in the same directory but I cannot seem to create the same effect from the C drive. Any help would be greatly appreciated.
@echo off
:hider
attrib +h +s D:\oe
This does work just not with a temp drive. It will hide the file in the D drive while placed in the C drive.