Hi all,

I am still playing with an little app that creates an xml file and a text file. is there a simple way to get the created file to another location. The file is bieng created in C:\PROGRAM FILES\Image text Editor\photos\ but when its wrtten I need to get it to here C:\PROGRAM FILES\Image text Editor\ .I have included the code bieng used anybody got any ideas.

thanks in advance
R

VB Code:
  1. Private Sub Command2_Click()
  2.  
  3.  
  4.     Dim f1 As Integer, jpgurl As String, MyPath As String, Artist As String, xmlpath As String, songpath As String, slidenode As String, songname As String, mp3path As String, f2 As Integer, i As Integer
  5.     Dim myFolder As String, mytext As String
  6.  
  7.     myFolder = "photos/"
  8.     mytext = "your image Description here"
  9.  
  10.    
  11.     mp3path = "C:\PROGRAM FILES\Image text Editor\photos\"
  12.     xmlpath = "C:\PROGRAM FILES\Image text Editor\"
  13.    
  14.          f2 = FreeFile
  15.     Open mp3path & "jpg.txt" For Output As #f2       ' if you don't need mp3.txt take out
  16.      f1 = FreeFile
  17.      
  18.     Open xmlpath & "album.xml" For Output As #f1
  19.     Print #f1, "<?xml version=\""1.0\"" encoding=\""UTF-8\""?>"
  20.     Print #f1, "<slides>"
  21.     songname = Dir(mp3path & "\*.jpg")   ' get first track
  22.     i = 1
  23.     While Not Len(songname) = 0
  24.         'Print #f1, "<photo>"
  25.  
  26.         Print #f1, "<slideNode jpegURL="""; myFolder; songname; """>"; mytext; "</slideNode>"
  27. Print #f2, songname
  28.         Sleep 100                                ' slight pause, needed
  29.         songname = Dir                           ' get next image
  30.  
  31.         'Print #f1, "</photo>"
  32.    
  33.     Wend
  34.     Print #f1, "</slides>"
  35.    
  36.  
  37.    
  38.    Close