Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating text file on different server

Status
Not open for further replies.

jayplus707

Programmer
Jul 29, 2002
17
0
0
US
I need some help!!!

I have my application on some server, but I would really like to create the file on my machine. My machine has a shared folder that gives everyone read/write permissions. Is it possible? Thanks!!
 
yes. on your project, add reference to the Microsoft Scripting Runtime.

Try this.

Dim objTextFile As New FileSystemObject

objTextFile.CreateTextFile (&quot;\\<target_machine>\<share_name>\<filename.txt>&quot;)


where:
target_machine = your PC
share_name = the folder that will contain the text file
filename.txt = your text file

work fine if you use the Universal Naming Convension (\\my_server\my_shared_folder)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top