Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 how to open a file and save it in another location

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-09-12 : 11:52:42
What I tried, I used OpenFileDialog to open my source file, then i put it in a string "myFileToSave"

Then I tried to use

SaveFileDialog to save that source file to a new destination, but I don t know in which propertyof mySaveFileDialog I should the fhe file that I want to save or its path

Thanks for your help.

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2006-09-13 : 09:44:49
Is it possible you should be using a "SaveFileASDialog"???
Go to Top of Page

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-09-14 : 14:04:46
I am not sure what that SaveFileASDialog is used for
can u explain to me its usage pls.
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2006-09-15 : 11:57:52
I don't KNOW if such a dialog exists....I'm suggesting it MIGHT exist...given that in Excel, Word, etc there is one dialog to save and another to saveAS, i'm inferring that other MicroSoft products may have teh same operations. Have a look at the object you are using to manipulate the file to see if it has a method/property called "savefileas"...or such like.
Go to Top of Page

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-09-16 : 07:55:01
I am just gonna use the function: File.Copy()
thanks
Go to Top of Page
   

- Advertisement -