Thanks for any help in advance. I am using vb.net in visual studio 2008.
here is my delima. From my program I would like to call a function that grabs all file names in a certain folder and I would like to pass them to a text file. I am able to do this from the command prompt line outside of my program from within the folder itself.
The folder is always changing and it is passed by a variable named strPath.
I would like when the shell opens to automaticaly be in this directory.
So i am playing around with it and so far I have
StrPath being the path that the user specifies to be looking in.
Dim commandstring As String = "" & strPath & " /b *.model > myjunkystuff.txt" Dim cmdExeID As Integer = Shell("CMD """ & commandstring & """") ', AppWinStyle.Hide)
However, this isn't working for me.