Sign in to follow this  
Followers 0
mircea

WTF? problems with notepad?

7 posts in this topic

well i make a simple program, that every time i start my computer it will start 2 documents in notepad and it gives me this stupid error and i really have no idea how to fix it

this is the error

This File does not have a program associated with it for performing this action. Create an association in the Folder Options control panel

What could it be, i went in Control Panel, folder Options and i have no clue what i have to do

can someone help me with this ?

this is the code

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "porneste agenda automat", "REG_SZ", "D:\Z ce porneste automat cand pornesti calculatorul\agenda\agenda.exe")


ShellExecute("D:\sfaturi.txt", "", "", "edit")
ShellExecute("D:\Agenda.txt", "", "", "edit")
run("D:\Agenda.txt")

Share this post


Link to post
Share on other sites

well i make a simple program, that every time i start my computer it will start 2 documents in notepad and it gives me this stupid error and i really have no idea how to fix it

this is the error

This File does not have a program associated with it for performing this action. Create an association in the Folder Options control panel

What could it be, i went in Control Panel, folder Options and i have no clue what i have to do

can someone help me with this ?

this is the code

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "porneste agenda automat", "REG_SZ", "D:\Z ce porneste automat cand pornesti calculatorul\agenda\agenda.exe")


ShellExecute("D:\sfaturi.txt", "", "", "edit")
ShellExecute("D:\Agenda.txt", "", "", "edit")
run("D:\Agenda.txt")
Hi,

try

ShellExecute("notepad.exe","D:\Agenda.txt", "", "edit")

;-))

Stefan

Share this post


Link to post
Share on other sites

still no luck god damn

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Try "open" instead of "edit" , damnit !

:)

Edited by Inverted

Share this post


Link to post
Share on other sites

Hi,

try

ShellExecute("notepad.exe","D:\Agenda.txt", "", "edit")

;-))

Stefan

Hooo,

i got the same but:

ShellExecute("notepad.exe","D:\Agenda.txt") should work.....

;-))

Stefan

Share this post


Link to post
Share on other sites

Hooo,

i got the same but:

ShellExecute("notepad.exe","D:\Agenda.txt") should work.....

;-))

Stefan

Why are you doing the

run("D:\Agenda.txt")

What is that trying to do. You cannot run a .txt file. At least I do not think you can. Try just having that line and see if you still get the error.

Bob


--------------------bobchernow, Bob ChernowWhat a long strange trip it's beenUDFs: [post="635594"]Multiple Monitor Screen Resolution Change[/post]

Share this post


Link to post
Share on other sites

i get no error, i fix the problem after some hours

what i had to do it was to go in Control Pane -> Folder Options -> File Types -> from there find the TXT and then there is a button NEW and press it and add save it with Edit (one from there is going to be open) and browse with what program it will open

thats all

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