Quantcast
Channel: Toad Data Point Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2544

RE: Determine datetime of file without Run Program task

$
0
0

Thanks, Martin, did not realize that powershell was available from my notebook. So yes, calling it on the C drive should work from both my notebook and the server.

As for getting the result into TDP, I already had that worked out. Here is my original .bat file that Run Program was calling:

FOR %%a IN (\\FileServer\MyShare\DataFile.csv) DO SET FileDate=%%~ta
(
ECHO FileDateTime
ECHO %FileDate%
)>\\FileServer\MyShare\FileDate_Save.csv

I then used an Import task to pull it into a variable. I'll just have to suss out the powershell part to capture the data to the csv file.


Viewing all articles
Browse latest Browse all 2544

Trending Articles