Hi
This is probably a VERY basic question but,
how can I simply use a command such as
copy file lpr2
in VB. Where file is a string for the filename.
All I want to do is send the file to the line printer. This command works at the DOS
prompt. Also, I can execute it from Fortran.
I have tried Shell, but it would not work.
The I wrote a FOrtran program to print the file and asked VB to call it, using SHELL. That worked but only when I put
the file name in explicitly, ie not as a variable.
Again, in Fortran and in C I can do this easily using some sort of system call. How can I do the same with VB?
thanks
This is probably a VERY basic question but,
how can I simply use a command such as
copy file lpr2
in VB. Where file is a string for the filename.
All I want to do is send the file to the line printer. This command works at the DOS
prompt. Also, I can execute it from Fortran.
I have tried Shell, but it would not work.
The I wrote a FOrtran program to print the file and asked VB to call it, using SHELL. That worked but only when I put
the file name in explicitly, ie not as a variable.
Again, in Fortran and in C I can do this easily using some sort of system call. How can I do the same with VB?
thanks