Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to close wordpad.exe program

$
0
0

Hi have the following script, which works fine:

@echo off

for /F "tokens=1-4 delims=/ " %%i in ('date /t') do (
set WD=%%i
set D=%%j
set M=%%k
set Y=%%l
)

start /w sqlplus myuser/mypwd@mydb @export.sql
start /w wordpad export_%WD%%D%%M%.txt
--How to close the previous txt file
exit

Once the script has finished the export_03072013.txt file remains open and, I would like to close the file.

Can anybody tell me how to do this?

Thanks in advance.

Regards.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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