Batch file - Executing - in Drive E: - The system cannot find the path specified

I have the following program, but it is failing because it cannot find the path specified.
It is something with being executing from drive E:

set newDate=%date:~4,2%-%date:~7,2%-%date:~10%
set arg=OEM10G
set WorkingDirectory=C:\Program Files\Veritas\NetBackup\bin
set Logs=E:\oracle\Dba\logs\hot_backup_logs\hot_backup_logs
set Scripts=E:\oracle\Dba\scripts\hot_backup_scripts
Set History=E:\oracle\Dba\logs\historial
set LogFile=%Logs%\logfile.txt
set VerifyFile=%Logs%\Verificacion.log
set BorrameFile=%Logs%\borrame.txt
set HistoryFile=%History%\OEM10G_hotbackup_HISTORIAL.log
set Server=OEM10G
set Today=%Date:~4,2%-%Date:~7,2%-%Date:~10%
set Policy=Windows-Servers-dbs
set LogFile=%Logs%\OEM10G_Hotback.%Today%.log
set FileList=%Scripts%\OEM10Glist.txt
e:
start E:\oracle\Dba\scripts\hot_backup_scripts\hot_OEM10G_backup.bat

C:
cd "C:\Program Files\Veritas\NetBackup\bin"
start bpbackup -p Windows-Servers-dbs -s %arg% -L E:\oracle\Dba\logs\hot_backup_logs\%arg%_Hotback.%newDate%.log -f E:\oracle\Dba\scripts\hot_backup_scripts\%arg%list.txt
e:
goto :Queued

:Queued
   e:
   call %Scripts%\WAIT.bat 5
   (  tasklist /fi "IMAGENAME eq bpbkar32.exe"
      tasklist /fi "IMAGENAME eq bpcd.exe"
   )>%BorrameFile%

  findstr /i /s "bpbkar32.exe bpcd.exe" %BorrameFile%

  if %errorlevel% equ 1 (
      echo Veritas lo puso en Queued>%VerifyFile%
      echo error level is %errorlevel%>>%LogFile%
      goto :Queued
   ) else (
      e:
      goto :Loop
     )
     

:Loop
        e:
      call E:\oracle\Dba\scripts\hot_backup_scripts\WAIT.bat 10
      tasklist.exe /fi "IMAGENAME eq bpbkar32.exe">E:\oracle\Dba\logs\hot_backup_logs\borrame.txt
      tasklist.exe /fi "IMAGENAME eq bpcd.exe">>E:\oracle\Dba\logs\hot_backup_logs\borrame.txt
      findstr /i /s "bpbkar32.exe bpcd.exe" E:\oracle\Dba\logs\hot_backup_logs\borrame.txt
      if %errorlevel% equ 0 (
            echo Todavía está corriendo el envío a Veritas > E:\oracle\Dba\logs\hot_backup_logs\Verificacion.log
            echo error level is %errorlevel% >>E:\oracle\Dba\logs\hot_backup_logs\logfile.txt
            Goto :Loop
       ) else (
            echo Terminó el envio a Veritas >> E:\oracle\Dba\logs\hot_backup_logs\Verificacion.log
            echo error level is %errorlevel% >>E:\oracle\Dba\logs\hot_backup_logs\logfile.txt
            start E:\oracle\Dba\scripts\hot_backup_scripts\hot_OEM10G_backup_end.bat
            Goto :Terminar
      )

:Terminar
      e:
      type E:\oracle\Dba\logs\hot_backup_logs\%arg%_Hotback.%newDate%.log >> E:\oracle\Dba\logs\hot_backup_logs\hot_OEM10G.%newDate%.log
      type  E:\oracle\Dba\logs\hot_backup_logs\%arg%_Hotback.%newDate%.log >> E:\oracle\Dba\logs\historial\OEM10G_hotbackup_HISTORIAL.log  
      ECHO Y | DEL E:\oracle\Dba\logs\hot_backup_logs\%arg%_Hotback.%newDate%.log
      findstr /C:"ORA-" E:\oracle\Dba\logs\hot_backup_logs\hot_OEM10G.%newDate%.log
      if %errorlevel% equ 0 (
            cscript E:\oracle\Dba\scripts\hot_backup_scripts\sent_log.vbs
      ) else (
            findstr /C:"status = 0" E:\oracle\Dba\logs\hot_backup_logs\hot_OEM10G.%newDate%.log
            if %errorlevel% neq 0 (
                  cscript E:\oracle\Dba\scripts\hot_backup_scripts\sent_log.vbs
      )
      
      exit;

LVL 8
LindaCAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

prassoonSuryadasCommented:
Make sure you have the folder in E:\oracle\Dba\ and its subfolders.
0
LindaCAuthor Commented:
Yes they exist.

Folders.docx
0
vikas_madhusudanaCommented:
instead of

e:
start E:\oracle\Dba\scripts\hot_backup_scripts\hot_OEM10G_backup.bat

have
e:
cd E:\oracle\Dba\scripts\hot_backup_scripts\
start hot_OEM10G_backup.bat

even i some times faced this problem because it will start searching hot_OEM10G_bacup.bat in e: because new cmd promt will be open in e:\ but not E:\oracle\Dba\scripts\hot_backup_scripts\
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

LindaCAuthor Commented:
Tha is executing ok. What it is not executing is inside the routines:  :Queued and :Loop
0
t0t0Commented:
If you have '@echo off' at the start of your code then change it to '@echo on' and temporarily change 'exit' to 'exit /b' as well. Then run your batch file. At the point where it displays an error messege, it should also display the section of code it was trying to execute. Seeing this would narrow down our search for the problem
 
0
LindaCAuthor Commented:
Checking
0
LindaCAuthor Commented:
Because it does not find the borrame.txt it cannot go out of the loop.
Attaching an incomplete log.
log.txt
0
t0t0Commented:
I'm gonna lie down in a minute for a couple of hours and get some sleep as I haven't been to bed yet and my mind is starting to play tricks with me....
0
LindaCAuthor Commented:
Ok,  I will do the same in a couple of minutes.
0
Steve KnightIT ConsultancyCommented:
I might be wrong here, but after a quick look the only thing I can see is this line:

set logs=E:\oracle\Dba\logs\hot_backup_logs\hot_backup_logs

Should that be perhaps

set logs=E:\oracle\Dba\logs\hot_backup_logs

To ensure such directories exist you could always add an MD:

MD %logs% 2>NUL
etc.

Steve
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve KnightIT ConsultancyCommented:
though it seems you only use the %logs% and %logfile% variables it makes once for some reason rather than in all the other logfile >> redirects etc?
0
LindaCAuthor Commented:
Thank you!
0
t0t0Commented:
oh, thanx steve... i was only have some well-earned sleep....
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage Software

From novice to tech pro — start learning today.