
lilgirl
Avatar/Signature-
Posts
26 -
Joined
-
Last visited
Everything posted by lilgirl
-
uhh..yea...thanks..but my question was about non-urls like system file paths..those are what i want to show as links. in other words, something like this: c:\test\db and not something like: http://www.yahoo.com. is this possible?? :confused:
-
Hi, I have a RichTextBox that contains links to files in my system directory, i.e. c:\db\files. I would like to display these file paths as clickable links similar to how the detectURLs feature creates clickable links for URLS like http://www.yahoo.com. Is there a way to do this? Thanks.
-
Yes, but for paths like "c:\documents and settings" that won't work. :(
-
Hi, I would like to search a string and return any filepaths within that string. Is there any existing method that can do this for me? Thanks.
-
How do I check if a file is currently already open for read or write?
-
Hi, I have an array that contains strings like this: "Connection_1.xml" "Connection_10.xml" "Connection_2.xml" "Connection_3.xml" I would like to sort the array so that "Connection_10.xml" is last rather than 2nd in the list. Can anyone suggest a way to do this? Thanks.
-
Hi, I am new to Visual C++. I have a 2d array in my function. char array[MAX][MAX]; I then fill in the contents of the array, say, like this: array[0][0]='a'; array[0][1]='b'; array[0][2]='\0'; Now when I run the debugger and want to view the contents of the 2D array, I don't see them. If I type this in my watch window: array[0] it says "error: index 0 out of bounds for pointer/array 'array' " same error comes up if I type something like this in my watch window: array[0],4 Can anyone tell me what I am doing wrong? I really need to be able to view contents of my 2d array! Thanks for any ideas.
-
THANKS! you rock! i'm dumb..shoulda noticed that :) thanks again! :cool:
-
lol..no no..i just wrote "file path" so that i don't have to write out the actual path. weird why it wont work for me - this is what im doing: Dim fi As New IO.FileInfo(filen) fi.Attributes = fi.Attributes Or IO.FileAttributes.ReadOnly MsgBox("locked") Dim fileS As New System.IO.StreamReader(filen) searchMe = fileS.ReadToEnd() fileS.Close() fi.Attributes = fi.Attributes Or IO.FileAttributes.Normal MsgBox("unlocked") I get the same error message when I try to write to it after it is locked and unlocked... :confused:
-
It gives me the same message that I get when the file is set to read only: CANNOT CREATE THE "FILE PATH" FILE. MAKE SURE THAT THE PATH AND FILENAME ARE CORRECT. :(
-
hey thanks! that worked nice. one thing, how do i set it to read and write access again after that? I tried: fi.attributes=io.fileattributes.normal msgbox("unlocked") But when I try to write to the file after the msgbox comes up, it won't let me. Thanks for your help!
-
Hi, I am trying to make a file read only in VB. My code is as follows: Dim f2 As New System.Security.Permissions.FileIOPermission(System.Security.Permissions.FileIOPermissionAccess.NoAccess, filen) MsgBox("locked") Once the message box appears and I open the file, it allows me to write to it. What am I missing? Any thoughts are appreciated. Thanks.
-
Hi, I have the following code: Dim htmlfile As System.IO.StreamWriter = New System.IO.StreamWriter(newstr) What I want to do is: if newstr exists, overwrite its contents. how can i implement this as the above code does not do this. thanks.
-
the folder browser dialog box is a component of visual studio 2003 that allows the user to select a directory in a dialog box..similar to the file dialog box..except it only shows directories. so what i want to do is display the directories on the ftp server in that dialog... any ideas are appreciated.
-
i am now wondering how i can display the files and directories on the server in the folder browser dialog box...anyone know if there is a way to do this? thanks!
-
thanks...i will have to look for tutorials on php now i guess..if you have any quick helpful links or sample code, i would appreciate it. thanks again!
-
thanks for the idea, sde. using php on the server side, would i also be able to edit and delete files on the server using my application because I will also need to do that. Thanks.
-
thanks for your reply. what i tried to do was have vb.net look through the server files the same way it looks through files on my computer. For example: Dim files() As String = IO.Directory.GetFiles("http://199.98.xx.xx:xxxx/beams/") However, when I try to run this, it says URIs not supported. Is there some other class or function that would allow me to do this? Thanks.
-
Hi, I have files stored on an http server. I want to click on a button in vb.net and have it list all the file names on the server directory. Is there a way to do this. The directory I want to access is: something like http://123.45/folder/ Thanks.
-
Hi, Is there a particular vb.net class that would allow me to run a program using telnet to log into the particular server i want to access without making the user deal with telnet? Basically, I want a button on a vb form that when clicked, runs a program that is stored on a server you can access through telnet. Thanks.
-
I have an app that opens a text file and reads its contents one line at a time. My app requires the file to be read several times, but starting from a specific line in the file rather than from the top. Thus, I would like to set a pointer to a line within a file. Does anybody know how I can do this? If this is not possible, is there a way to sort of "rewind" the file to the line I want after I have read the entire file once already?
-
I know the name of the file I want to open and I know the root directory it is located in. It is simple to open the file if i know which subdirectory it is in, but my question is: how do I search the root directory and any subdirectories for the file and then open it?
-
Hi, I currently have a VB.NET application that reads and writes to XML documents on my local machine. I would like to put these XML documents on a server and access them through my application. My question is: how would one implement file sharing and locking so that when one user is updating a file, other users can view it as read-only. The vb.net function I currently use to update the XML files is LoadXML. Would there be a way to implement these locks on files through VB or would I be better off transferring all the documents to a native XML database like Xindice or Tamino? Thanks very much.