BBC BASIC for Windows
« Printer Redirect Problemi »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:49pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Printer Redirect Problemi  (Read 471 times)
ae34tr
New Member
Image


member is offline

Avatar




PM


Posts: 5
xx Printer Redirect Problemi
« Thread started on: Dec 17th, 2009, 07:43am »

below written program did not work
Where is the problem
you'll be glad to help
Thanks

Ahmet Eksioglu
ae34tr@hotmail.com
------------------------------------------------

rem Printer Redirect

input "Computer: " computer$
input "Printer : " Printer$

*net use lpt1: /delete
*net use lpt1: \\computer$\printer$ /YES
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Printer Redirect Problemi
« Reply #1 on: Dec 17th, 2009, 08:40am »

Quote:
below written program did not work
Where is the problem

When you need to incorporate variables in a 'star' command you have to use OSCLI, thus:

Code:
      REM Printer Redirect
      
      INPUT "Computer: " computer$
      INPUT "Printer : " Printer$
      
      *net use lpt1: /delete
      OSCLI "net use lpt1: \\"+computer$+"\"+Printer$+" /YES" 

Richard.
User IP Logged

ae34tr
New Member
Image


member is offline

Avatar




PM


Posts: 5
xx Re: Printer Redirect Problemi
« Reply #2 on: Dec 17th, 2009, 10:10am »

Thenkyou
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls