hi, due to my FTP server not liking to upload .exe files in order to get my auto updater to work i have to rename the folder .file before i upload
after this is downloaded i need it to check the application folder for any files ending with ".file" and if it finds any to remove the ".file" so that it is just .exe
This is the code i have written so far...
If (Application.StartupPath + "\" + line).EndsWith(".file") Then Dim endsinnew As New TextBox endsinnew.Multiline = True endsinnew.Text = (Application.StartupPath + "\" + line).EndsWith(".file") Dim line2 As String = "" For Each line2 In endsinnew.Lines My.Computer.FileSystem.RenameFile(startup + "\" + line2, "????") Next End If
But i cannot work out how to just remove the .file from the end. It works if i specify a file but i cannot do this as i may need to download multiple files with the updater when it needs to update...
Hope that that is understandable and please help
thanks a lot