Page 1 of 1

Posted: 09 Jul 2007, 11:48
by DanEE
Is there a way to create new files like with "Shift+F4" without open it with the editor?
That would be very useful for me.

Posted: 11 Jul 2007, 16:00
by Jan Rysavy
It is not possible now (using Altap Salamander).

We plan to extend User Menu to support entering custom variables. Then it will be possible to enter file name and create it using User Menu.

Another way is plugin. There is SDK for Altap Salamander available, such plugin should be done within two hours.

You can also try AutoIt started from User Menu. There will be probably possible ask for file name and create it.

Posted: 11 Jul 2007, 23:13
by th.
Try this VBScript:

Code: Select all

'NewFile.vbs
Filename = InputBox("New file name:", "Create new file")
If Filename <> False Then
  Set objFSO = CreateObject("Scripting.FileSystemObject")
  Set objFile = objFSO.CreateTextFile(Filename)
End If
The User Menu entry for this should look like this:
Command: <path to the script>
Arguments: <empty>
Initial directory: $(FullPath)
Execute through shell: unchecked

Posted: 22 Aug 2007, 08:40
by Waldemar
th. thanks for that little script it works perfectly. :)

Waldemar

Posted: 22 Aug 2007, 22:09
by th.
:D