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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with winoldap

Status
Not open for further replies.

brittoalexis

Programmer
Dec 16, 2001
32
0
0
IN
Hi,

I wrote code in vb which prints a text file in dos mode.Here i had a problem . When it prints, a file known as winoldap is coming into my memory.

How to avoid this winoldap or how can delete it through code.

Thanks in advance.

Brits.
 
You can try this and it schould not open Winoldap.

Dim From As String
Dim To As String
From = "c:\file.txt"
To = "lpt1"
FileCopy From, To

You could also use shell to copy the file to lpt1 also.

If you want to close an external file through code you should find an API function that does that.

Hope that it will help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top