Sign in to follow this  
Followers 0
Exit

How to enable F5(go) for *.cmd files ?

7 posts in this topic

I like to edit my *.cmd files in SciTE.

Is it possible to enable F5 to run the current file in command processor ?

Should save current file and then call Start <current_edit_file>


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites



Edit Others.properties and at the bottom change it to this:

if PLAT_WIN
    command.go.*.cmd=$(FileNameExt)
    command.go.*.bat=$(FileNameExt)
1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Edit Others.properties and at the bottom change it to this:

if PLAT_WIN
command.go.*.cmd=$(FileNameExt)
command.go.*.bat=$(FileNameExt)

Jos, you are the king. :thumbsup:

But I changed it a little bit to create an additional command window.

if PLAT_WIN
command.go.*.cmd=Start $(FileNameExt)
command.go.*.bat=Start $(FileNameExt)

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

And how to add an entry in the explorer file menu right click.

For *.AU3 files, there are entries "Edit script","Compile script","Tidy", .....

I would like to have an entry "Edit with SciTE" for *.cmd and *.bat files.

I think it would be a registry entry like this one for folder menu CMD open

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd]

@="Open CMD prompt"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmd\command]

@="CMD.EXE /S /K pushd \"%1\""


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

@Jos Thanks. Works perfect. :thumbsup:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\cmdfile\shell\EditSciTE]

@="Edit with SciTE"

[HKEY_CLASSES_ROOT\cmdfile\shell\EditSciTE\command]

@="\"G:\\Program Files (x86)\\AutoIt3\\SciTE\\SciTE.exe\" \"%1\""

[HKEY_CLASSES_ROOT\batfile\shell\EditSciTE]

@="Edit with SciTE"

[HKEY_CLASSES_ROOT\batfile\shell\EditSciTE\command]

@="\"G:\\Program Files (x86)\\AutoIt3\\SciTE\\SciTE.exe\" \"%1\""

Edited by Exit

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

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