Sign in to follow this  
Followers 0
Immensee

Open specific file with notepad

7 posts in this topic

Hiya,

please help me with this simple question:

how can i open a specific file with notepad, using the run (not necessarily though)?

thanks for watching,

immense :)

Share this post


Link to post
Share on other sites



ShellExecute use the associated file with the program

ShellExecute("C:\test.txt")

this opens the text.txt. file in notepad ( on my computer )

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

oh i know that...

sorry, i wasn't clear enough :P I meant that the file that i want to open is named "data.ab1" for example.

Since .ab1 isn't seen as a text file, how can i still manage to open the file with notepad.exe ? Do you know that :P

but thanks for helping me :)

immense

Share this post


Link to post
Share on other sites

Have you tried

Run("notepad.exe somefile.ext")

?

Share this post


Link to post
Share on other sites

Have you tried

Run("notepad.exe somefile.ext")

?

Huh does that work?

I'll try . . . . . . .

Wow, it worked XD Didn't knew that was possible heheh

Thanks man :),

immense

Share this post


Link to post
Share on other sites

Why wouldn't it work? It's called a command line. That's how files are opened when they aren't processed through DDE.

Share this post


Link to post
Share on other sites

Why wouldn't it work? It's called a command line. That's how files are opened when they aren't processed through DDE.

This Run cmd resembles the command.exe commands, and I'm not familiar with these kind of stuff.

Didn't knew that run could pass other things too.

I only know website codes like html, php, javascript and css and only autoit language :P

But many thanks for your help! now i can help my mom for her address book for her restaurant :).

immense

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
Sign in to follow this  
Followers 0