Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Here's an interesting question ~

Status
Not open for further replies.

Paul7905

MIS
Jun 29, 2000
205
US
I just spent the last 4 weeks developing an Access '97 application using a workstation with Windows '98.&nbsp;&nbsp;One of the things this application does is to dynamically call another application to print thermal bar code labels.&nbsp;&nbsp;The application tested out fine on the '98 box.<br><br>Yesterday I migrated the application up to our Compaq 3000 server running Windows NT 4.0.&nbsp;&nbsp;Alas, when testing the application there, the call to the label printing application failed (a window pops up with the script &quot;File not Found&quot; (no other information, I don't even know what application is isuing this window; the &quot;file&quot; that is &quot;not found&quot; is not shown in the window either).<br><br>Carefully checking, I made certain that the file and path-names were correct.&nbsp;&nbsp;Stymied and baffled, I finally went to the DOS prompt and looked at DOS file names.&nbsp;&nbsp;Out of desperation, I modified the Visual Basic code in my application to use the DOS file name instead of the Long file name and the call worked.&nbsp;&nbsp;<br><br>Now I am wondering if there is something unique about Windows NT, a parameter or something that has to be set in order to use long file names in dynamic calls ?&nbsp;&nbsp;Can anyone shed any light on this?&nbsp;&nbsp;<br><br>The following shows the original call (that works fine on Windows '98 but fails on NT 4.) and the call using the DOS file name that works.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br><br>**ORIGINAL CALL THAT WORKS ON '98 BUT FAILS ON NT 4.0 :<br><br>Dim stAppName As String<br><br>stAppName = &quot;C:\Program Files\BarTender\bartend.exe&quot;&quot;/f=C:\PROGRAM <br>&nbsp;FILES\BarTender\Excel Formats\FARM LIBRARY LABEL 4X2.BTW/FP/X&quot;<br><br>Call Shell(stAppName, 1)<br><br><br>**REVISED CALL ON NT 4.0 THAT WORKS (USING DOS FILE NAME):<br><br>Dim stAppName As String<br><br>&nbsp;&nbsp;&nbsp;stAppName = &quot;C:\Program Files\BarTender\bartend.exe&quot;&quot;/f=C:\PROGRAM <br>&nbsp;FILES\BarTender\Excel Formats\FARML0~1/FP/X&quot;<br><br>Call Shell(stAppName, 1)<br><br>Where &quot;FARML0~1&quot; is the DOS file name&nbsp;&nbsp;........&nbsp;&nbsp;this seems crazy to me, but it works..........&nbsp;&nbsp;&nbsp;any ideas as to why ?&nbsp;&nbsp;<br><br>Paul
 
What service pack is the NT server running? <p>Zel<br><a href=mailto:zel@zelandakh.co.uk>zel@zelandakh.co.uk</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top