>>>I am currently printing a few hundred reports(via DO...WHILE loop) to a remote directory (\\REMOTE\temp\) for printing at a later time. The remote machine is running Win98 and the directory is shared. The problem I have is that, until I access the directory thru Windows Explorer, the reports are "pretending" to print, but never make it there. As soon as I open the folder the reports immediately start being created. Has anyone else seen this?
>>You can try to create a temp file before you do printing:
>>lcPath = "\\Remote\temp\"
>>lcTempName = SYS(2015)
>>=strtofile("Testing", lcPath + lcTempName)
>>Erase (lcPath + lcTempName)
>>
>>Maybe it will help.
>
>Nope, that didn't work. The temp file was never created in the remote directory.
You can try to map remote directory to a local name.
It can be done dynamically using WSH
oNet = CREATEOBJECT("WScript.Network")
oNet.MapNetworkDrive("Z:", "\\REMOTE\temp\")
oNet.RemoveNetworkDrive("Z:")
--sb--