The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner

Reply
 
LinkBack Thread Tools Display Modes
Old 01-19-2008, 12:07 PM   #1
Constant Bitrate
 
Join Date: Sep 2006
Location: Cornwall, England
Posts: 145
Wireless update help......please:)

Hi,

I have writen my own front-end and for a final touch I thought I would have an option to wirelessly update the MP3 shared folder on my PC when I am in the driveway.

Right, what I have done is set my home PC to a static IP address of '192.168.0.136' and a shared folder called 'mp3'

Here is a small bit of code demonstating what I want to do...

strHubComputerIP = "192.168.0.136"
strHubComputerMp3Folder = "mp3"
strRemoteDirectory = New DirectoryInfo("\\" & strHubComputerIP & "\" & strHubComputerMp3Folder & "\")
If strRemoteDirectory.Exists Then............


this works fine, but if I change the IP address to "192.168.0.135", the computer hangs for 2 minutes.

For example, if I pull into my drive and want to update, but my home PC is off, I don't want the computer in the car to hang. I want it to tell me that the IP address isn't found.

Hope someone can help, I've been working on my front-end for a year now as I've been saving up for the hardware. This is the last bit I need to sort out, then I can build the machine
portreathbeach is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 01-19-2008, 01:33 PM   #2
Confusion Master
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 10,204
Why are you doing it by IP, do it by PC name and share name.


I would personally map a drive to your home PC from your car PC, it will make it more stable.
Enforcer is online now   Reply With Quote
Old 01-19-2008, 02:10 PM   #3
Constant Bitrate
 
Join Date: Sep 2006
Location: Cornwall, England
Posts: 145
Thanks for the quick reply.


So simply using this code:

strHubComputerName = "main-computer"
strHubComputerMp3Folder = "mp3"
strRemoteDirectory = New DirectoryInfo("\\" & strHubComputerName & "\" & strHubComputerMp3Folder & "\")
If strRemoteDirectory.Exists Then

' Some code......

ELSE

' Some code telling the user that the remote shared folder can't be seen.....

END IF


should do the trick then?

So if I make sure that the workgroup setup on the carPC is the same as the one on my home PC and run this code on the carPC when the wireless is in range and the home PC is on, the code should work?

Thanks again

Last edited by portreathbeach; 01-19-2008 at 02:27 PM.
portreathbeach is offline   Reply With Quote
Old 01-19-2008, 02:35 PM   #4
Confusion Master
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Posts: 10,204
Just replace the IP address with the PC name.

ie

Code:
strHubComputerName = "HomePC" strHubComputerMp3Folder = "mp3" strRemoteDirectory = New DirectoryInfo("\\" & strHubComputerName & "\" & strHubComputerMp3Folder & "\") If strRemoteDirectory.Exists Then............

Assuming that HomePC is the name of the PC.

However if you mapped a drive then all you would need is the drive letter you mapped it to.
Enforcer is online now   Reply With Quote
Old 01-19-2008, 02:52 PM   #5
Constant Bitrate
 
Join Date: Sep 2006
Location: Cornwall, England
Posts: 145
Thumbs up

Thanks very much,

I'll try this.
portreathbeach is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless LAN Drivers? ScotLarsen Infill T3 17 07-04-2007 09:49 PM
Wireless Questions Maheriano Wireless Communications 1 05-23-2007 03:08 AM
Wireless Help with Dialup Internet NiN^_^NiN Wireless Communications 2 02-06-2005 07:10 PM
Wireless router to wireless router wirelessly Jackso Wireless Communications 13 04-20-2004 11:14 PM
Wireless lilliput 7 touchscreen wireless.? Nokia6600 LCD/Display 4 02-29-2004 07:45 AM


All times are GMT -5. The time now is 02:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics