V
V
Vladislav2021-10-25 16:04:16
C++ / C#
Vladislav, 2021-10-25 16:04:16

ShellExecute how to prescribe a path with a space?

Unable to write path. A folder with a space, as I understand it, because of the space, all the problems:

ShellExecute(NULL, "open", "C:\\WINDOWS\\system32\\cmd.exe", "/k curl -T C:\\Users\\Desktop\\Folder name\\Favicons ftp://host.ru --user user:pass", 0, SW_RESTORE);


I quoted the path, to no avail.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2021-11-05
@NeYmen

Yes, the space must be enclosed in double quotes " "(In the file name itself).
There should not be Russian characters yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question