VBNewbie
asked on
Files to folder
I have a program which I have a menu to automatically save a file. The file is being temporarily saved to the memory. Once I unload the program my files are lost. So, I created a folder so that my files would be saved into that folder. My problem is how do I do that. I need help on doing this. I need to save the file to a folder. I don't want to create a flat file (ie text file). This works like a Favorites for Internet Explorer. Where if you wanted to bookmark something, that page is saved in the Favorites folder. The file is the actual link to the web site.
ASKER
Pauljk I don't want it to create a text file. I would like to save the file as is (ie word doc, excel files ,etc.). Could also please unlock the question.
Thanks
Thanks
ASKER
The program should work much like the saving a bookmark or favorites for the Internet Explorer. What I want it to do is when the user clicks on the menu and click save, the file will be automatically saved to a folder (ie C:\Temp\Test). Thanks again. Pauljk I have already done that in my program. I don't want my file to be saved as a flat file.
What is the code that you used to save the file to memory?
Do you mean you want to create an internet shortcut?
If so check out:
http://www.mvps.org/vbnet/
and search for internet shortcut
If so check out:
http://www.mvps.org/vbnet/
and search for internet shortcut
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for help guys.
Open "C:\Test.txt" For Output As #1
' Print to the output file.
Print #1, strTextToPutInFile
' Close the output file.
Close #1