Hi,
I'm using mklink to create a symboic link under windows (7/8.1/10).
Because mklink is part of the cmd I use following code:
proc := TProcess.Create(nil);
proc.Executable := STR_EXE_CMD;
proc.Options := proc.Options + [poUsePipes];
proc.Execute;
mklink_cmd := Format('%s %s "%s" "%s"%s', [STR_EXE_MKLINK,
STR_PARAM_SYMLINK, __path_reports_dst, __path_reports_src, LineEnding]);
proc.Input.Write(mklink_cmd[1], Length(mklink_cmd));
Sleep(100);
But with that code I don't get any response from mklink.
I have already checked the Output stream, but there is only the cmd header and the mklink call:
Microsoft Windows [Version 10.0.17134.523]
(c) 2018 Microsoft Corporation. Alle Rechte vorbehalten.
C:\daten\src\projects\project1\bin>mklink /D "C:\server\reports\" "C:\server\www\reports\"
C:\daten\src\projects\project1\bin>
So is there a way to get the response of mklink?
Or is another option the create a symbolic link under windows.
Best regards,
antispam88