is there any way i can redirect the output to a network printer installed on the local network..
is there any way i can redirect the output to a network printer installed on the local network..
Assuming that you're on a Windows network, You can use NetUseAdd to establish a connection to a remotely *shared* printer. Essentially, you would be programmatically executing the equivalent of the following NET USE command line statements:
Assume PRTA is the current network printer being used by your workstation, you would first delete this connection as follows:
NET USE LPT1 /DEL
Now you wish to use PRTB as follows
NET USE LPT1 \\SomeServer\PRTB
Your have just changed your printing thru LPT1 from PRTA to PRTB. Again, assuming that PRTB is a SHARED printer.
The remove function doesn't get rid of the file. Maybe I was unclear, but I want Test.txt to be deleted if that is easy.
Also, when I create the file, can it be called a different name according to a string?(only matters if I can't delete it)
Thanks
-Matt
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.