Hi,
changing MagDEVICE sounds like a bad idea as old data cannot be retrieved anymore and a temp folder changea as well. You can better change FileNameSyntax, e.g., by prepending it with your subfolder of choice. This can be done at any time, as for old data the filename is stored in the database and remains valid. To set use, e.g,:
dgate "--put_param:FileNameSyntax,folder\%studyid\%seriesid\%sopuid.dcm"
dgate --read_ini:
or
dgate "--lua:Global.FileNameSyntax=[[folder\%studyid\%seriesid\%sopuid.dcm]]"
where folder is your variable path. See futher the documentation of FileNameSyntax
Marcel