Hi there,

I am trying to create a program which will create a desired diretcory name, then move all the jpg files from the program directory to the new directory,...

this is what i have done so far....

I can seem to get it to work...please help ....

Dino

VB Code:
  1. Dim strFileName As String
  2.  
  3.  
  4.     Private Sub btnMove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMove.Click
  5.         strFileName = txtFile.Text
  6.         IO.Directory.CreateDirectory(strFileName)
  7.         IO.File.Move("*.jpg", Application.StartupPath & "\" & strFileName)
  8.  
  9.         IO.Directory.GetFiles(Application.StartupPath, "*.jpg")
  10.  
  11.     End Sub