Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 5th, 2004, 10:30 AM
Authorized User
 
Join Date: Jun 2004
Location: , , Iceland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Files

Hi me again

Now I am practising in file access. I have opened files in various of my folders and done some work on them, no problem. But now I want to open a file on another network computer, how do I go around in doing so ?? I have searched all over the MSDN library I am probably not typeing in the correct search syntax or something... could you take few minutes to help me out guys and girls ??

The Computer name is ABC and the file is in folder FOLDERTEST...

Thanks

 
Old July 5th, 2004, 11:12 AM
Authorized User
 
Join Date: Jun 2004
Location: , , Iceland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am able to do it if I map the drive first to a Drive letter like Z for example but I want to be able to do it with out having to map it before.....
"Z:\\ABC\\FOLDERTEST" - works but not "\\\ABC\\FOLDERTEST"
 
Old July 6th, 2004, 05:35 AM
Authorized User
 
Join Date: Jun 2004
Location: , , Iceland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Melvik, Coderforrent no ideas ?

 
Old July 6th, 2004, 10:55 AM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Sorry but I guess u should map it!!! r u going to do this stuff in a Software or what?! what r these Files?! what r they about!? r there ur Codes?! I didnt get:D

Always:),
Hovik Melkomian.
 
Old July 6th, 2004, 10:58 AM
Authorized User
 
Join Date: Jun 2004
Location: , , Iceland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is going to be a directory on another computer with just plain order info in .txt format. I want a Client watching that folder and polling like every 5 secs to see if there is a new order to read in. I want to be able to have this Client on different computers and not having to worry about mapping it on each computer I set up the Client on....

 
Old July 6th, 2004, 11:07 AM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Do u have to use Text file?! r u sure u dont need any DataBase?!
Using DB is more easier & ...
if u need it, u can map it & check reconnect at login.
Its not bad, if they need to read a file!!!

Always:),
Hovik Melkomian.
 
Old July 6th, 2004, 11:11 AM
Authorized User
 
Join Date: Jun 2004
Location: , , Iceland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is going to be little handheld computers uploading small .txt files to a server and then these Clients are going to read these .txt files and import them into the database... Am I doing this all wrong ?

 
Old July 6th, 2004, 11:17 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Why can the handheld computer not access the database? What about the handhelds accessing a web service?
 
Old July 6th, 2004, 11:18 AM
Authorized User
 
Join Date: Jun 2004
Location: , , Iceland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I could use web services I guess.

Well these handhelds aren't always in internet range, so I thought I would make them batch the orders when out of range, into a .txt file and then upload it when in-range...

 
Old July 6th, 2004, 10:45 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Dear ZiqXx: I still think that using DB is much better but if u wanna use .TXT files I guess u have to map it!

Always:),
Hovik Melkomian.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating Excel FIles from resource Files abinashpatra ASP.NET 1.0 and 1.1 Basics 0 July 28th, 2008 02:07 AM
compare 2 files and output third files mtnguye6 VBScript 0 April 14th, 2008 11:03 AM
.php files vs .html files pbuongiovanni PHP How-To 2 January 5th, 2006 04:15 AM
decrypt files from zip files mmmobasher VS.NET 2002/2003 0 January 21st, 2004 03:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.