Latest post of the previous page:
Только лучше наоборот, сначала lua, а потом системными средствами.
Latest post of the previous page:
Только лучше наоборот, сначала lua, а потом системными средствами.
Не очень устраивает.
Это уже интереснее, причём само по себе (как уже замечено выше).
Встал на
C:\Program Files (x86)\Windows NT\Accessories\wordpad.exe
, перешёл в режим записи макроса, нажал Enter
— панели моргнули, редактор запустился. При запуске C:\Windows\System32\notepad.exe
и впрямь не моргают. (Ассоциаций .)Теперь вроде бы работает. Конец недели наступил. Если что, "будем кричать".
<Space>
character, FAR will pass an additional argument which points to an empty string. (pointer to a single \0
byte)7z a test.7z file.txt
(no <Space>
after the "txt") ==> works fine7z a test.7z file.txt
(additional <Space>
after the "txt") ==> Command line error: empty file path
7z.exe a test.7z file.txt
(.EXE, no <Space>
after the "txt") ==> works fine7z.exe a test.7z file.txt
(.EXE, additional <Space>
after the "txt") ==> Command line error: empty file path
C:\7-Zip\7z a test.7z file.txt
(full path, no <Space>
after the "txt") ==> works fineC:\7-Zip\7z a test.7z file.txt
(full path, additional <Space>
after the "txt") ==> Command line error: empty file path
C:\7-Zip\7z.exe a test.7z file.txt
(full path and .EXE, no <Space>
after the "txt") ==> works fineC:\7-Zip\7z.exe a test.7z file.txt
(full path and .EXE, additional <Space>
after the "txt") ==> this one also works fine, even with <Space>
<Ctrl-Enter>
.Code: Select all
#include <stdio.h>
int main(int argc, char **argv)
{
for (int i = 0; i < argc; i++)
{
printf("Argument %d: [%s]\n", i, argv[i]);
}
}
c:\test a b c
(with <Space>
at the end):
Code: Select all
Argument 0: [c:\test.exe]
Argument 1: [a]
Argument 2: [b]
Argument 3: [c]
Argument 4: []
c:\test.exe a b c
(with <Space>
at the end and .EXE extension):
Code: Select all
Argument 0: [c:\test.exe]
Argument 1: [a]
Argument 2: [b]
Argument 3: [c]
c:\test a b c
(with space at end)
Code: Select all
Full command line: ["c:\test.exe" a b c "]
Argument 0: [C:\test.exe]
Argument 1: [a]
Argument 2: [b]
Argument 3: [c]
Argument 4: []
c:\test.exe a b c
(with space at end and .EXE)
Code: Select all
Full command line: ["c:\test.exe" a b c ]
Argument 0: [\test.exe]
Argument 1: [a]
Argument 2: [b]
Argument 3: [c]
c:\test a b c
(with space at end)
Code: Select all
Full command line: ["c:\test.exe" a b c ]
Argument 0: [\test.exe]
Argument 1: [a]
Argument 2: [b]
Argument 3: [c]
c:\test.exe a b c
(with space at end and .EXE)
Code: Select all
Full command line: ["c:\test.exe" a b c ]
Argument 0: [\test.exe]
Argument 1: [a]
Argument 2: [b]
Argument 3: [c]
"
at then end of the command line.