How to create new files

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
DanEE
Posts: 1
Joined: 09 Jul 2007, 11:28

Post 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.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post 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.
User avatar
th.
Posts: 116
Joined: 04 Sep 2006, 23:09
Location: Germany

Post 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
Waldemar

Post by Waldemar »

th. thanks for that little script it works perfectly. :)

Waldemar
User avatar
th.
Posts: 116
Joined: 04 Sep 2006, 23:09
Location: Germany

Post by th. »

:D
Post Reply