CreateTextFile Halts Program
I got the following code from various ASP help sites:
dim filesys, filetxt, getname, path
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt = filesys.CreateTextFile("c:somefile.txt")
The third line causes the program to halt. I am on localhost. (I tried it without "c: too.) What is the problem?
View Replies
ADVERTISEMENT
I want to create a text file,I have read numerous tutorials about this, the problem is
when I try to create it,I get an error message saying that I don´t have permission,
does anyone know how I can change the settings so I can do this? I´m running my test
asp on my local mashine.
View Replies
View Related
I am pulling info from a couple of different tables and writing the info to a formatted text file. Some of the info is pretty staight forward but I can't get my head wrapped around this last part.
I'm looping through the items ordered but each line I write needs to be numbered. The bold number needs to 1,2,3,4, etc for each line thats written ("dt|1|" & objRS("SKUid") etc...).
View Replies
View Related
I am trying to create a dynamic CSV file via FileSystemObject.CreateTextFile. I have no problem creating the CSV file normally but I would like to insert comments and VBScript into the coding.
Normally, the file would look something like this: .....
View Replies
View Related
I develop a website on my local computer in ASP/SQL SERVER 2000 in XP PRO OS. The CreateTextFile, DeleteFile and OpenTextFile (for appending and also just for reading) functions doesn't work.
I had done all security rights from IIS (read, write, execute) and I shared the folder with all rights in reading, writing and executing. I don't understand why this functions doesn't work. I have no error display but the script never stop.
View Replies
View Related
I am trying to use the FileSystemObject to create a text file and then write some data to the file. Code:
View Replies
View Related
I am trying to execute the following function which performs four tests to
make sure the current environment is capable of uploading files. Test 1
completes ok, but test 2 results in the page hanging indefinitely.
An error
number is not returned (it just hangs on the line: Set testFile =
fso.CreateTextFile(fileName, true) ). However when I execute test 2 using
VBScript from within an Excel macro it creates the text file without any
problem. Code:
View Replies
View Related
I use filesys.createTextFile to create a csv file. If I have about 600 rows(10 columns) then I can see the csv file created. But, if I have about 700 rows(10 columns still) then the csv file not created. I repeated many times and the result is the same. Is there a limitation on filesys.createTextFile?
View Replies
View Related
When an introducer is logged onto our site, I want to create a separate directory for them and place in this an index.asp page that will redirect including a variable to identify them.
I have created the folder with no problem, but when I try and create the ASP file, I'm getting errors. Code:
View Replies
View Related
I am having problems with serving an excel file to client web browsers.
I am creating a tab delimited .xls from a recordset. Below is the .asp
code. Code:
View Replies
View Related
I am trying to run a program with a command line switch from vbscript.This is the code im trying:Code:
ReturnCode = WshShell.Run("C:Program FilesNorton AntiVirusNAVW32.exe c:", 1, True)
I guess Im just after the formatting like where to put the quotes.
View Replies
View Related
I talked to my instructor and he was not sure but lets say I have URL - I know about Request.QueryString("name") for have URL and you get bob as the info past - but what if it is only ?andthename and do not use name=bob like in have URL and what I want is name = Request.QueryString("first entry") that is bob. That is all you get - how does that work - I have seen it before on pages but not sure they are asp - I think php can do it and I know it can be done with cgi.
View Replies
View Related
Currently I'm developing upload program using vbscripts. I want to log all the upload actvity to the DB.
So I insert form and other input field in the upload form. My problem is, my upload program cannot accept Request.Form tag. But the upload activity success but I still cannot achive my target to log the upload activity in DB. Any solution to avoid this happened? Is there any input tag other than request.form? Pls guys really need your help in this.
Here the error code :
Request object, ASP 0206 (0x80004005)
Cannot call BinaryRead after using Request.Form collection.
View Replies
View Related
if its using access for db its even better.recommend a free one.
View Replies
View Related
I would like a free Live Support script for my site...writtent in ASP. I found some, but they refresh the page to update the contents...I would like it to use a better, more-efficient way. Some features that would be nice, but not needed would be visitor monitoring and operator initiated chats, and the ability to push the user to pages. If there is any such script...could someone please tell me where I can find it?
View Replies
View Related
I am looking for an "Accounting Program" (even perhaps a CashBook) written in asp. There is gnuCash written in PHP -is there any equivalent in ASP ? I have searched most of the opensource webs, and cant see anything along these lines - does one exist
View Replies
View Related
I have a vb program which initiates a powerpoint when run (with a click of a button). i made a dll for that program by opening the .vbproj in a textdoc and changing some values. I was wondering can we call this dll from an asp program so that the power point gets initiated from asp.
View Replies
View Related
With .asp,how do I call another program?I would like to have my .asp script make a call to a PERL script, wait for the PERL script to finish, and then continue with what is/isn't returned from PERL.
I know in PERL this is simply done: system(theASPprog.asp). No fork is created, so the PERL prog waits for the .asp to finish.How do I do this with ASP?
View Replies
View Related
simple, easy to implement Classified Ads program I could add to my Web? I can use Access pretty well but don't know much about ASP yet.
View Replies
View Related
how to run a program on our webserver after a file has been uploaded? This is all server based. We have a requirement that an end user uploads a file to our web server. after the file has been uploaded the next line of code needs to call a program installed on the webserver that runs a remote command on our AS/400.
View Replies
View Related
I need an end task program in VB6.0 (the source code). I have searched planet-source-code.com inside out and can't find just 1 regular end task program that works on my system. Is it because I am running on XP and they only work on ME and younger systems?
Anyways I need an XP, source, compatible version of the software. I am writing an interesting program, which once complete will tell you what its for (dont worry this one is totally legal ). It should list and then allow users to click END/close. I think its done through an API.
View Replies
View Related
I was wondering if its possible to call a program thru' asp pages. If yes, then how? For eg. I want to call abc.exe how can I do so? What if abc.exe is standalone program?
View Replies
View Related
I have tried two so far, ASP Runner and Iron Speed. Iron Speed has so many more features than ASP Runner, however, seems setup for use with SQL. I am simply using Access Databases, and not SQL. Does anyone have any recommendations on ASP Code Generating programs like ASP Runner, that do not require you to be using SQL Server and has more features?
View Replies
View Related
I need to run a program on the Web Server from an ASP page. The program requires two arguments. What is the solution for this. I am not very experienced with this.
View Replies
View Related
I am learning ASP/VBScript using PWS under Win98SE. To send an email I need CDO object. In a book I am reading (very old one) it says that there are no CDO objects for PWS. Is there a Microsoft solution to sent an email in PWS?
View Replies
View Related
The XML file I am reading in my ASP program doesn't appear to have carriage returns. For example:
The XML file looks like this:
-<animal>
<name>Dog</name>
</animal>
but when I read it it looks like this:
<animal><name>Dog</name></animal>
I am opening the file with OpenTextFile.
I am trying to parse the file in my code so I really want it to look like this:
-<animal>
<name>Dog</name>
</animal>
Can anyone offer suggestions.
View Replies
View Related
I've taken on a website, which seems to use an '.adb' as it's database source. It connects to this using the microsoft Access driver, as it would an Access database.
I've Googled, and can't seem to find out how to open the .adb file and edit it.
View Replies
View Related
My web application with to have a chat room or instant messaging features.
But doing that is not worth as there are a lot of instant messaging software
out there such as MSN Messenger, Yahoo Messenger and ICQ.
So I plan to make a link in the page, so that when click on the link, the
appropriate messenger software will be executed.
Eg: click on the link "MSN", then it will call out the MSN Messenger
program.
View Replies
View Related
I am trying to use the Run method of WScript.Shell to run a program that creates image files on the server. When I run the program through the command line it creates a text file and a bmp file which is what it is supposed to do.
If I run it from an asp page it doesnt do anything, it also doesnt give me any error messages. I can run the same vbscript code in a standalone vbs file on the server and it works right. Code:
View Replies
View Related
my problem is i want to retrieve/get the date 3 day early using asp code, for example this date 12/10/2004 and i want to know 3 day early from that date which is 9/10/2004, do u guys have any idea....
and i more question which is how to make a page automatically run a program when the time or date is set, after the time/date has expire then a program is run, i have no idea also.
View Replies
View Related
Can any body give me a perfect link or program for file uploading program. Actually i have to write a program for mail attachment. And for attaching mail I have to give the virtual path of the attachment
file and it is possible only when file will be upload within a directory that is under virtual directory from physical path.
View Replies
View Related
I know we can write ASP with VB Script. Some people told me the big ASP
projects usually use Visual Basic for the business logic. Is that the case?
What I mean is an ASP project is the combination of server-side ASP code and
Visual Basic components (.cls)
View Replies
View Related
I'm selecting data from an oracle table into my recordset in ASP program. The program reads all the data from recordset until end of file and then again move the record pointer to beginning by using 'MoveFirst' command.
The program works fine if there is less data in the record set say 15-16 records. The moment the data exceeds 100 records, it fails to get data from te record set after 'MoveFirst' command. In other words the data from the recordset is lost after 'MoveFirst' command.
View Replies
View Related