BlackEvil Posted May 11, 2010 Posted May 11, 2010 I need to open a Notepad file from one of my folder. But it is not wqorking. Can any one help me.My script looks like below Run("Notepad.exe" &" " & Chr(34) & $OutputFilePath & Chr(34),@SW_MAXIMIZE)I tried may variations but of no use.this link and the autoit documentation says it should work. If the folder has spaces it should be enclosed in double quotes
Xenobiologist Posted May 11, 2010 Posted May 11, 2010 $OutputFilePath = "c:\Dokumente und Einstellungen\All Users\Notes\uk.dic" Run('Notepad.exe "' & $OutputFilePath & '"', '', @SW_MAXIMIZE) Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
BlackEvil Posted May 11, 2010 Author Posted May 11, 2010 Ooops sorry. It was my mistake. i mistaken the documentation. This will work without any problem Run("Notepad.exe "& $OutputFilePath)
Xenobiologist Posted May 11, 2010 Posted May 11, 2010 Ooops sorry. It was my mistake. i mistaken the documentation. This will work without any problem Run("Notepad.exe "& $OutputFilePath) It won't if there are blanks in the $OutputFilePath Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
BlackEvil Posted May 12, 2010 Author Posted May 12, 2010 It won't if there are blanks in the $OutputFilePathNo! it works well with spaces. I used this folder " F:\My Learnings\AutoIt\My Scripts\Readme.txt "
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