Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to test if a csv file is empty or not and email it?

$
0
0

Hi,

I am new to powershell scripting and i have a small task which is basically i have a csv file which will sometimes be empty(it will have header row even if its empty ) and sometimes it will have some rows of data.so basically i have to write a power shell script which will look at the csv file and if its empty then do nothing if its not empty then email it to someone with the csv file attached to it?

Can someone please help me with it?

Thanks


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

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