Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Searching for files and sending mail

$
0
0
Hi,

I want a VB script that can perform the following tasks,

1)Open command prompt and navigate to certain path (for eg: C:\Programs\) and then execute the below command on a daily basis,

Code:
list -C <client name> -t 13 -l -R -s <previous_day> /D > D:\Prgrams\list_currentdate.txt

Note: There are 4 clients and the above command should be executed four times one time for each client , and the previous date should be calculated through some mean and passed on to that field (after -s in the command). The output is redirected to a folder with name list_currentdate.txt. And please note that only the underlined fields should only be changed and the rest of the fielss are constant in the command.

2) Mail the file to mail id. Please help me out.

Viewing all articles
Browse latest Browse all 27554

Trending Articles