I had a program which will convert the content of text file into a desired format and inorder to run this pro we need to pass in input filename paramter and keyword /p and will generate a txt in the working ditector. I have excecuted the below syntax in command prompt and the conversion works fine.
CD C:\Program Files
CD My Converter
C:\ProgramFiles\MyConverte
r>Converte
r /p c:\test2.txt
Conversion sucessful
VB.net code
Dim stemp As String
stemp = "cmd /c c:\Program Files\MyConverter\Converte
r.exe /p " + "c:\test2.txt "
Shell(stemp)
But .net code does nt work..What seems to be the problem lately. Experts, pls advice.
Start Free Trial