dialogBox

  • Thread starter Thread starter Michael Sgier
  • Start date Start date
M

Michael Sgier

Hi
on the dialogform I've a ok button and a textfield txtfield
I want to rename a file to the name given in txtfield by the user but I get
the error that the destination
file could not be accessed because it's used by another process. What shell
I do?
Many thanks and regards
Michael
If dlg.ShowDialog = DialogResult.OK Then

ren(txtfield.txt)


End If

in ren on the mainform i have:

File.Move(fullPath & Beschriftung, text)
 
Hi
on the dialogform I've a ok button and a textfield txtfield
I want to rename a file to the name given in txtfield by the user but I get
the error that the destination
file could not be accessed because it's used by another process. What shell
I do?
Many thanks and regards
Michael
If dlg.ShowDialog = DialogResult.OK Then

ren(txtfield.txt)


End If

in ren on the mainform i have:

File.Move(fullPath & Beschriftung, text)
Is the file on your machine? Is it open?

Is the file on another machine (server)? Is it open?

What exactly are you trying to do? Tell us more about the context in which you
are renaming the file.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 
Hi Otis
yes on the same machine, no networking and no other processes. In the
same application i get that error. filemon doesn't show anything
special. My question is simple "how can I use the userinput from a
dialogform, lets say XXX to rename a file in a directory in the same
application root.
File.Move(fullPath & YYY, XXX)
Strange is that it says the destionation file is in use...i did a
dispose of the dialogbox without results.
Thanks
Michael
 
Back
Top