I am using winpe and edited the startnet.cmd with a script to find my batch script
===

This is my startnet.cmd of my winpe, Menu.bat is the batch file im trying to get to run. The problem is that it keeps saying Menu.bat exists on d: and trys to run it everytime. Menu.bat is not on d: it is defaulting to be on f drive on this machine. I am trying to have it find it no matter the drive.

wpeinit
for %%a in (D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) DO IF EXIST %%a:\Menu.bat (set w=%%a)
Set execpatch=%w%
call %w%:\Menu.bat

Please inform me on what i am doing wrong. Thank you.