Hi !
I try to run this and it works ok when I run it by step but otherway comes error and I think that's the reason is time, cmd process name txt to another name and it is not yet ready ! How should it do ?
Do
Do Until txtfile = ""
Call Shell("\\flevy\data\thy\virhetiedostot\tee txttiedosto.cmd", 1)
DoCmd.TransferText acImportFixed, "Viheelliset", "Virheelliset merkinnät", "\\data\thy\virhetiedostot\f338bxxx.txt", False, ""