Shell Command in vb.net
Posted on 2006-10-29
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\MyConverter>Converter /p c:\test2.txt
Dim stemp As String
stemp = "cmd /c c:\Program Files\MyConverter\Converter.exe /p " + "c:\test2.txt "
But .net code does nt work..What seems to be the problem lately. Experts, pls advice.