Question / Issue |
|
DataPlus 4.0, 3.0 Auto Import |
Answer / Solution |
|
PROGRAM: DataPlus Auto Import
- Microsoft Task Scheduler
- Task Scheduler msdn
- Batch files included in DataPlus installation
- Batch File Definition - A batch file is a type of script that contains a list of commands.
Commands are executed in sequence and can be used to automate processes. - Batch File TechTerms.com
Batch File 32 bit
- Browse to: C:\Program Files\Hogan Data\DataPlus 4.0\ (or 3.0)
- Edit Import-**** (TSD32BIT).bat
64 bit
- Browse to: C:\Program Files (x86)\Hogan Data\DataPlus 4.0\ (or 3.0)
- Edit Import-**** (TSD64BIT).bat
Parameters
- File is for the "Default" setting configured in DataPlus
- A log file will be created after batch file is run
- Log file location is under "Logs" folder
- After batch file is run, the file name will be time stamped.
- Log files will be retained for 14 days.
- You can change the day count by modifying -14 to the days you prefer.
- - Program Files\Hogan Data\DataPlus 4.0\Logs" -s -m *.log -d -14 -c "cmd /c del /Q @path"
- Save and close batch file
|
32 bit Example
:Sample Console Batch File :Auto-Generated by DataPlus 4.0 @Echo Off @Echo Log File Location: Logs\LOGFILENAME.log @Echo Import Starting..
"C:\Program Files\Hogan Data\DataPlus 4.0\DataPlus-Import-Console.exe" /s /co:"????" /pr:"Default" > "C:\Program Files\Hogan Data\DataPlus 4.0\Logs\LOGFILENAME.log"
: Renames the file with time stamp to retain timed log files @echo off cd "C:\Program Files\Hogan Data\DataPlus 4.0\Logs" @echo off FOR /F "tokens=1-4 delims=/- " %%A IN ('DATE /T') do set dateStr=%%B_%%C_%%D FOR /F "tokens=1-4 delims=: " %%A IN ('TIME /T') do set timeStr=%%A_%%B_%%C :: echo %dateStr% :: echo %timeStr% set file_name=LOGFILENAME_%dateStr%_%timeStr%.log ren "LOGFILENAME.LOG" %file_name%
@Echo Delete Files older than 14 days : Minutes : Days forfiles -p "C:\Program Files\Hogan Data\DataPlus 4.0\Logs" -s -m *.log -d -14 -c "cmd /c del /Q @path"
@Echo Log File Location: Logs\LOGFILENAME.log @Echo Import Complete @Echo On |
Task Scheduler
- Open Task Scheduler
- We recommend creating a folder name "DataPlus"
Schedule a task
- Create a scheduled task and point the "Action" to the batch file
- Schedule a task microsoft.com |
| |