ok, i have been trying to create a program that accesses files on other computers. I have used the lineThe problem is that the name of the directory changes according to what computer the program is running on. (The Bob part). When i use the "My.Computer.Name" line to get the computer name, it gives me "***\Bob". So i can get the name of the computer, but it has characters at the front that annoy me and stuff up the program when i set "***\Bob" as part of the directory. I just need it to be "Bob". Is there anyway to manpulate the string to remove the first 4 characters, and leave the rest?Code:My.Computer.FileSystem.CopyDirectory("C:\Documents and Settings\Bob\Local Settings\Temporary Internet Files", "d:\My Documents")




Reply With Quote