Jump to content

WTF? problems with notepad?


mircea
 Share

Recommended Posts

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")
Link to comment
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

Link to comment
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]

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...