mircea Posted February 5, 2009 Posted February 5, 2009 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")
99ojo Posted February 5, 2009 Posted February 5, 2009 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
Inverted Posted February 5, 2009 Posted February 5, 2009 (edited) Try "open" instead of "edit" , damnit ! Edited February 5, 2009 by Inverted
99ojo Posted February 5, 2009 Posted February 5, 2009 Hi,try ShellExecute("notepad.exe","D:\Agenda.txt", "", "edit");-))StefanHooo,i got the same but:ShellExecute("notepad.exe","D:\Agenda.txt") should work.....;-))Stefan
bobchernow Posted February 5, 2009 Posted February 5, 2009 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]
mircea Posted February 5, 2009 Author Posted February 5, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now