-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPO_CheckHUIT.bat
More file actions
49 lines (44 loc) · 1.32 KB
/
PO_CheckHUIT.bat
File metadata and controls
49 lines (44 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@ECHO off
:: Logs are in C:\MinGW\msys\1.0\
echo "" > PO_Check_Batch.Log
echo "" > PO_BAT-SH.Log
echo "" > PO_T.Log
call :main>>PO_Check_Batch.Log 2>&1
::PAUSE
EXIT /b
:main
echo Start time is: %date% %TIME%
::SETLOCAL
::(
ECHO.
::You can use %~dp0 to get the path of the currently running batch file.
::Edited to change directory to the VBS location before running
::If you want the VBS to synchronously run in the same window, then
::@echo off
::pushd %~dp0
::cscript necdaily.vbs
::If you want the VBS to synchronously run in a new window, then
::@echo off
::pushd %~dp0
::start /wait "" cmd /c cscript necdaily.vbs
::If you want the VBS to asynchronously run in the same window, then
::@echo off
::pushd %~dp0
::start /b "" cscript necdaily.vbs
::If you want the VBS to asynchronously run in a new window, then
::@echo off
::pushd %~dp0
::start "" cmd /c cscript necdaily.vbs
start /wait "" cmd /c cscript C:\MinGW\msys\1.0\MDB_Query.vbs
::cscript C:\MinGW\msys\1.0\MDB_Query.vbs
::start /wait "" cmd /c cscript necdaily.vbs
Rem C:\MinGW\msys\1.0\bin\sh ~/test.sh
C:\MinGW\msys\1.0\bin\sh -l C:\MinGW\msys\1.0\home\Administrator\Scripts\PO_Check.sh >> PO_BAT-SH.Log
:: C:\MinGW\msys\1.0\home\Administrator\Scripts\Email_Test.sh
::sleep 1200000 >> Email_Two.Log
timeout /T 7 >> PO_T.Log
::pause
::)>>Email_Two.log
::GOTO :EOF
ECHO.
EXIT /b