From: Heesob Park Date: 2008-05-22T18:30:14+09:00 Subject: Re: Unable to write in notepad Hi, 2008/5/22 Pranjal Jain : > Hi > I am sorry > it worked for me sooner after I posted the question.I had used the same > code which u mentioned. > > But there is another problem I am facing. > For running the the script the notepad should be opened before I execute > the script. > > I dnt want to keep any notepad open before I start running the script. > Can u suggest how I can overcome this problem > I guess you did not try my code. Following code is included for the opening notepad: if not wsh.AppActivate('Notepad') wsh.Run('Notepad') sleep(1) end Regards, Park Heesob