Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Multiple Dos command through Task scheduler Action without using batch file.

$
0
0
Hi,

In task scheduler action(s) I would like to execute following DOS commands without using any batch file. Would it be possible? Please help.

/ Store current date and time in a variable /
set TIMESTAMP=%DATE:~0,2%-%DATE:~3,2%-%DATE:~6,4%-%TIME:~0,2%.%TIME:~3,2%.%TIME:~6,2%

/ Create directory /
md "%TIMESTAMP%"

/ Pass above created directory to one of the program /
HTBase.exe /full /logfile=%LOGDIR%\HTBase.log /r /y %APPDIR% %FULLDIR%/"%TIMESTAMP%" >> %LOGDIR%\HTBaseFullBackup.log

Currently it is done through batch file but I would like to execute these command through Task scheduler action(s) without using any batch file.

Regards,
Pabitra

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>