Jump to content
prasad123

saving notepad file in a desired folder

Recommended Posts

prasad123

Hi All

I am creating a new folder in My Dcouments based on current date and time. Then I have to save a notepad file in that folder. 

 

$sPath = @MyDocumentsDir & "\Automation Test " & @MDAY & "." & @MON & "." & @YEAR & " " & @HOUR & "." & @MIN & "." & @SEC
DirCreate($sPath)

Run ("Notepad.exe")
WinWaitActive ("Untitled - Notepad")
Send ("This is some text")
 

How do I save this notepad file in the created folder ?

 

I tried with FileSaveDialog but it is not working. Am I doing it wrong or should I use some different function altogether

 

Thanks and Regards

Share this post


Link to post
Share on other sites
Nessie

If you are injecting some text in notepad and then save it in a specific folder...why don't you use FileWrite?

 

Hi!

  • Like 1

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×