All I want to do is search c,d,e,f,g,h,etc for a file then set an environment variable to be the drive letter the file was found on
I can do it with a for / do / dir file name / errorlevel check but when it gets to a cd drive it stops with a pop up "cmd.exe no disk in drive" it would not matter only it stops the batch file running until you click cancel
	
		
			
		
		
	
				
			I can do it with a for / do / dir file name / errorlevel check but when it gets to a cd drive it stops with a pop up "cmd.exe no disk in drive" it would not matter only it stops the batch file running until you click cancel
 
	 
  
 
		 
 
		 
 
		