Okie. Is this correct now?
print(command_line)
local temp = tempfile('.zip')
servercommand('export:,'..command_line..',,,'..temp)
system('copy '..temp..' C:\DICOM_IMAGES\copied')
os.remove(temp)
Okie. Is this correct now?
print(command_line)
local temp = tempfile('.zip')
servercommand('export:,'..command_line..',,,'..temp)
system('copy '..temp..' C:\DICOM_IMAGES\copied')
os.remove(temp)
yes that looks correct.
Marcel
Script updated but no data copied in the specified location.
Does the script start? The print statement should show in the log. If you use e.g. process study after 5 it will start right away.
Marcel
I update the dicom.ini file . Still no luck
--HM
Hm,
my fault - try:
ImportConverter0 = process study after 5 by test.lua %VStudyInstanceUID
Marcel
This is the error log:--
[PACS] UPACS THREAD 1: STARTED AT: Wed Oct 12 22:23:50 2022
[PACS] Calling Application Title : "local "
[PACS] Called Application Title : "PACS "
[PACS] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384
[PACS] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.1.1" 1
[PACS] Starting 1 DelayedForwarderThreads
[PACS] Importconverter0.0: queued process stu - (single object of A1011922-2) to toremote.lua 1.3.51.0.7.626212751.36234.35400.43697.31569.41411.43078
[PACS] Rewritten file: c:\dicom_images\DX\2021\December\27-12-2021\ABC123- (^ABC123)\Knee_AP\00010001.v2
[PACS] UPACS THREAD 1: ENDED AT: Wed Oct 12 22:23:51 2022
[PACS] UPACS THREAD 1: TOTAL RUNNING TIME: 1 SECONDS
[PACS] 1.3.51.0.7.626212751.36234.35400.43697.31569.41411.43078
[PACS] ***Failed to create process copy: 2
[PACS] 1.3.51.0.7.626212751.36234.35400.43697.31569.41411.43078
Ok,
Much better. It now fails on the copy line.
system('copy '..temp..' C:\DICOM_IMAGES\copied')
I think my system() calls expects an executable. For now try:
os.execute('copy '..temp..' C:\DICOM_IMAGES\copied')
Marcel
Tried but still no success.
I am doing all the testing on Microsoft Windows 11 can be that is the reason???
Waiting for a response 🙂
put a nop in front of the call to show the command line in the log.
Marcel
Don’t have an account yet? Register yourself now and be a part of our community!