J
jonefer
Is it possible to call shell commands directly with VB?
For example... instead of calling a batch file that has no
regard for my Access application could I call these
commands directly?
Then I could have control over parts of the process.
The following is an example of what my batch file does
1)unzip some files, send them to the printer
2)open some rtf's in word
3)clean up the files after I've printed them in word
=========================================================
@echo off
if #%1#==## goto End
:Start
j:
cd "\Production Eligibility\Eligibility\Load Reports"
if exist ul*.?rpt del ul*.?rpt
if exist *.rtf del *.rtf
:Unzip
wzunzip -o -yp uha%1.zip
rtTEXT
if exist ul*.?rpt nprint ul*.?rpt q=laser8100n nb
rtRTF
if not exist *.rtf goto End
"C:\Program Files\Microsoft Office\Office\winword.exe"
pefus_~1.rtf pefus_~2.rtf pefus_~3.rtf
goto finishword
Office2k\Office\winword.exe" pefus_~1.rtf pefus_~2.rtf
pefus_~3.rtf
:FinishWord
echo Press any key to continue after printing the RTF files
pause > nul
:Cleanup
if exist ul*.?rpt del ul*.?rpt
====================================================
For example... instead of calling a batch file that has no
regard for my Access application could I call these
commands directly?
Then I could have control over parts of the process.
The following is an example of what my batch file does
1)unzip some files, send them to the printer
2)open some rtf's in word
3)clean up the files after I've printed them in word
=========================================================
@echo off
if #%1#==## goto End
:Start
j:
cd "\Production Eligibility\Eligibility\Load Reports"
if exist ul*.?rpt del ul*.?rpt
if exist *.rtf del *.rtf
:Unzip
wzunzip -o -yp uha%1.zip
rtTEXT
if exist ul*.?rpt nprint ul*.?rpt q=laser8100n nb
rtRTF
if not exist *.rtf goto End
"C:\Program Files\Microsoft Office\Office\winword.exe"
pefus_~1.rtf pefus_~2.rtf pefus_~3.rtf
goto finishword
Office2k\Office\winword.exe" pefus_~1.rtf pefus_~2.rtf
pefus_~3.rtf
:FinishWord
echo Press any key to continue after printing the RTF files
pause > nul
:Cleanup
if exist ul*.?rpt del ul*.?rpt
====================================================