|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
How can I write asp to a file
Hi, I'm trying to write an asp file from asp like:
Set myFSO = Server.CreateObject("Scripting.FileSystemObject") Set TSO = FSO.OpenTextFile(MyFile, ForWriting, Create) TSO.write "<%" TSO.write "set myFSO = CreateObject(\"Scripting.FileSystemObject\")" & vbcrlf ... TSO.write "%>" TSO.close I don't think I escaped the quotes right. Does anybody know how to do this? Thanks. |
|
#2
|
||||
|
||||
|
Double the quotes inside the quotes, ie
Code:
TSO.write "set myFSO = CreateObject(\"" Scripting.FileSystemObject\"" )" & vbcrlf PS- if this doesn't help, tell what error you got, or what happened instead
__________________
--Dave-- U2kgSG9jIExlZ2VyZSBTY2lzLCBOaW1pdW0gRXJ1ZGl0aW9uaXMgSGFiZXM= |
|
#3
|
|||
|
|||
|
Yup, that fixed it. Thanks.
I replaced the \ with " inside the quotes. |
|
#4
|
||||
|
||||
|
Yeah, forgot to mention that. Glad it worked
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > How can I write asp to a file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|