Jump to content

Recommended Posts

Posted

Compile to exe, and the first param sent to the exe would be the full path of the file that is being opened

If $cmdline[0] > 0 Then
Run(@COMSPEC & ' /c notepad.exe ' & $cmdline[1])
EndIf

Compile that code, associate a text file to it, and it will auto-open those files in notepad...

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Posted

Or even more simply:

if ($cmdLine[0] > 0) then
    run('notepad.exe ' & $cmdLine[1])
endIf

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
  • Recently Browsing   0 members

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