Jump to content

yklxmas

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by yklxmas

  1. I googled for vbcrlf and found this link. http://www.dmxzone.com/ShowDetail.asp?NewsId=1721. I think i'll give this a go.Thanks everyone.
  2. Basically,The standard code to open up text file.In the loop to read every line,I code it liketextline = textline & textObject.readLineI can tell that this is wrong. Because I will end up with one long long long string without line break. Anyone knows how to store line by line in the same field. Cheers
  3. Thanks. But that's quite what I would like.I would like to insert them all the contents of one file in one field. Any help?
  4. Hiya,I'm just wondering if anyone can help me on this problem.I've got a text file and its content format is something like below00ABCDEF01ABCDEFGGGK3011ABCDEFKBasically, I would like to store them in its format in mysql. I've manually added the contents and called it in its format. However, I tried using ASP code but it just becomes a long string of text.Any idea how I can insert this into database?Many thanks in advance
  5. Hiya,I've just started a project for a company and have absolutely no idea how much I should charge them for. The technique I use/will be using involve php and mysql. Can anyone suggest how to charge, please?Many thanks in advance
  6. Hi all,I've read through the whole forum and couldn't find any information to my question. Before this, I tried to find information on the internet. The thing is, I just couldn't find a piece of information how to run it. I know it's some different from classic ASP. Can somebody please tell me how to run a .net page please? Many thanks in advance
  7. Hi all,I've written a script to move and delete files depending on the contents of them. However, everytime I tried to run the script, Permission denied mesage is throw to me. I've added this folder in program files as virtual directory in IIS and have given full access right and still no luck at all.Can anyone help me this solve this problem, please? Many thanks in advance.
  8. Hi,I've followed the example on the website and it doesn't work. Please give me a hand on this. Many thanks in advanceThe error I got:Error Type:Microsoft VBScript compilation (0x800A03FC)Expected 'Next'/cis/folder.asp, line 9The code I copied:<%dim fs,fo,xset fs=Server.CreateObject("Scripting.FileSystemObject")set fo=fs.GetFolder("c:\")for each x in fo.files 'Print the name of all files in the test folder Response.write(x.Name & "<br />")nextset fo=nothingset fs=nothing%>
  9. Hi all,A part of my daily job is to download a batch of files without file extension and I have to rename them with .txt. I've implemented a page to do so. However, there are always a few files with double extensions, ie filename.txt.txtI really have no idea where has gone wrong. It would be great if someone could help me out here. Many thanks in advance. The following is asp code i wrote.<%Dim StrVPath, StrPPathStrVPath = request.ServerVariables("PATH_INFO")StrPPath = Server.MapPath(StrVPath)Dim ObjFSO, ObjFile, ObjFolder, ObjFileItemDim ObjFolderContents, NewName, OldNameSet ObjFSO = CreateObject("Scripting.FilesystemObject")set ObjFile = ObjFSO.getFile(StrPPath)set ObjFolder = ObjFile.ParentFolderset ObjFolderContents = ObjFolder.FilesResponse.Write("Renaming")For Each ObjFileItem in ObjFolderContents newName = null oldName = null If UCase(Right(ObjFileItem.Name, 4)) <> ".ASP" Then 'Response.Write "Filename: " Response.Write "<br>" oldName = ObjFileItem.Name nameLen = Len(oldName) if nameLen = 9 then for i = 1 to nameLen if i <> 5 then 'response.write(i) 'response.write(mid(oldName,i,1)) newName = newName & mid(oldName,i,1) end if next newName = newName & ".txt" response.write("<b>" & newName) ObjFileItem.Name = newName newName = "" else oldName = oldName & ".txt" Response.Write ("<b>" & oldName) ObjFileItem.Name = oldName oldName = "" end if end ifnext%>
×
×
  • Create New...