Hi,
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.
Do you have any idea ?
Thanks.
SD 14 2160
We won't have any idea until you post the script your using..........
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:Ag*********************@news20.bellglobal.com ... Hi,
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. Do you have any idea ? Thanks. SD
oups, sorry, this is my code :
Set MyFSO = CreateObject("Scripting.FileSystemObject")
Set MyXLFile = MyFSO.CreateTextFile(MyFilePath)
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: Ow**************@TK2MSFTNGP15.phx.gbl... We won't have any idea until you post the script your using..........
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:Ag*********************@news20.bellglobal.com ... Hi,
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. Do you have any idea ? Thanks. SD
And MyFilePath contains?
As an FYI, info on using this method can be found at MSDN; http://surl.co.uk/?1092
Original URL: http://msdn.microsoft.com/library/de...us/script56/ht
ml/jsmthcreatetextfile.asp
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:0F*********************@news20.bellglobal.com ... oups, sorry, this is my code :
Set MyFSO = CreateObject("Scripting.FileSystemObject") Set MyXLFile = MyFSO.CreateTextFile(MyFilePath)
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: Ow**************@TK2MSFTNGP15.phx.gbl... We won't have any idea until you post the script your using..........
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:Ag*********************@news20.bellglobal.com ... Hi,
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. Do you have any idea ? Thanks. SD
MyFilePath = Server.MapPath(".") & "\csv\myfile.csv"
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: ui**************@TK2MSFTNGP12.phx.gbl... And MyFilePath contains?
As an FYI, info on using this method can be found at MSDN;
http://surl.co.uk/?1092
Original URL: http://msdn.microsoft.com/library/de...us/script56/ht ml/jsmthcreatetextfile.asp
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:0F*********************@news20.bellglobal.com ... oups, sorry, this is my code :
Set MyFSO = CreateObject("Scripting.FileSystemObject") Set MyXLFile = MyFSO.CreateTextFile(MyFilePath)
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de
news: Ow**************@TK2MSFTNGP15.phx.gbl... We won't have any idea until you post the script your using..........
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:Ag*********************@news20.bellglobal.com ... > Hi, > > 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. > Do you have any idea ? > Thanks. > SD > > >
Change that to;
MyFilePath = Server.MapPath("./csv/myfile.csv")
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:jv*********************@news20.bellglobal.com ... MyFilePath = Server.MapPath(".") & "\csv\myfile.csv"
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: ui**************@TK2MSFTNGP12.phx.gbl... And MyFilePath contains?
As an FYI, info on using this method can be found at MSDN;
http://surl.co.uk/?1092
Original URL: http://msdn.microsoft.com/library/de...us/script56/ht ml/jsmthcreatetextfile.asp
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:0F*********************@news20.bellglobal.com ... oups, sorry, this is my code :
Set MyFSO = CreateObject("Scripting.FileSystemObject") Set MyXLFile = MyFSO.CreateTextFile(MyFilePath)
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: Ow**************@TK2MSFTNGP15.phx.gbl... > We won't have any idea until you post the script your
using.......... > > -- > > Regards > > Steven Burn > Ur I.T. Mate Group > www.it-mate.co.uk > > Keeping it FREE! > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > news:Ag*********************@news20.bellglobal.com ... > > Hi, > > > > 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. > > Do you have any idea ? > > Thanks. > > SD > > > > > > > >
It doesn't work.
In fact this line " if MyFSO.FileExists(MyFilePath) = True Then " works
But not this one " Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) "
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: uC**************@TK2MSFTNGP15.phx.gbl... Change that to;
MyFilePath = Server.MapPath("./csv/myfile.csv")
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:jv*********************@news20.bellglobal.com ... MyFilePath = Server.MapPath(".") & "\csv\myfile.csv"
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de
news: ui**************@TK2MSFTNGP12.phx.gbl... And MyFilePath contains?
As an FYI, info on using this method can be found at MSDN;
http://surl.co.uk/?1092
Original URL:
http://msdn.microsoft.com/library/de...us/script56/ht ml/jsmthcreatetextfile.asp
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:0F*********************@news20.bellglobal.com ... > oups, sorry, this is my code : > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: > Ow**************@TK2MSFTNGP15.phx.gbl... > > We won't have any idea until you post the script your using.......... > > > > -- > > > > Regards > > > > Steven Burn > > Ur I.T. Mate Group > > www.it-mate.co.uk > > > > Keeping it FREE! > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > news:Ag*********************@news20.bellglobal.com ... > > > Hi, > > > > > > 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. > > > Do you have any idea ? > > > Thanks. > > > SD > > > > > > > > > > > > > > >
Can you post the whole of your code so I can check it on my machine?
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:qY*********************@news20.bellglobal.com ... It doesn't work. In fact this line " if MyFSO.FileExists(MyFilePath) = True Then " works But not this one " Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) "
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: uC**************@TK2MSFTNGP15.phx.gbl... Change that to;
MyFilePath = Server.MapPath("./csv/myfile.csv")
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:jv*********************@news20.bellglobal.com ... MyFilePath = Server.MapPath(".") & "\csv\myfile.csv"
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: ui**************@TK2MSFTNGP12.phx.gbl... > And MyFilePath contains? > > As an FYI, info on using this method can be found at MSDN; > > http://surl.co.uk/?1092 > > Original URL: >
http://msdn.microsoft.com/library/de...us/script56/ht > ml/jsmthcreatetextfile.asp > > -- > > Regards > > Steven Burn > Ur I.T. Mate Group > www.it-mate.co.uk > > Keeping it FREE! > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > news:0F*********************@news20.bellglobal.com ... > > oups, sorry, this is my code : > > > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message
de news: > > Ow**************@TK2MSFTNGP15.phx.gbl... > > > We won't have any idea until you post the script your using.......... > > > > > > -- > > > > > > Regards > > > > > > Steven Burn > > > Ur I.T. Mate Group > > > www.it-mate.co.uk > > > > > > Keeping it FREE! > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > news:Ag*********************@news20.bellglobal.com ... > > > > Hi, > > > > > > > > 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. > > > > Do you have any idea ? > > > > Thanks. > > > > SD > > > > > > > > > > > > > > > > > > > > > > > >
MyFilePath = Server.MapPath("./csv/smart_myfile.csv")
Dim xlStr
Dim MyFSO
Set MyFSO = CreateObject("Scripting.FileSystemObject")
if MyFSO.FileExists(MyFilePath) = True Then
Set fileObject = MyFSO.GetFile(MyFilePath)
fileObject.Delete
Set fileObject = Nothing
end if
Dim MyXLFile
Set MyXLFile = MyFSO.CreateTextFile(MyFilePath)
MyXLFile.WriteLine "test"
MyXLFile.Close
Set MyXLFile = Nothing
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news:
#d**************@TK2MSFTNGP11.phx.gbl... Can you post the whole of your code so I can check it on my machine?
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:qY*********************@news20.bellglobal.com ... It doesn't work. In fact this line " if MyFSO.FileExists(MyFilePath) = True Then "
works But not this one " Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) "
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de
news: uC**************@TK2MSFTNGP15.phx.gbl... Change that to;
MyFilePath = Server.MapPath("./csv/myfile.csv")
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:jv*********************@news20.bellglobal.com ... > > MyFilePath = Server.MapPath(".") & "\csv\myfile.csv" > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: > ui**************@TK2MSFTNGP12.phx.gbl... > > And MyFilePath contains? > > > > As an FYI, info on using this method can be found at MSDN; > > > > http://surl.co.uk/?1092 > > > > Original URL: > > > http://msdn.microsoft.com/library/de...us/script56/ht > > ml/jsmthcreatetextfile.asp > > > > -- > > > > Regards > > > > Steven Burn > > Ur I.T. Mate Group > > www.it-mate.co.uk > > > > Keeping it FREE! > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > news:0F*********************@news20.bellglobal.com ... > > > oups, sorry, this is my code : > > > > > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le
message de > news: > > > Ow**************@TK2MSFTNGP15.phx.gbl... > > > > We won't have any idea until you post the script your using.......... > > > > > > > > -- > > > > > > > > Regards > > > > > > > > Steven Burn > > > > Ur I.T. Mate Group > > > > www.it-mate.co.uk > > > > > > > > Keeping it FREE! > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > news:Ag*********************@news20.bellglobal.com ... > > > > > Hi, > > > > > > > > > > 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. > > > > > Do you have any idea ? > > > > > Thanks. > > > > > SD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
It's working just fine here......... http://mysteryfcm.plus.com/test/test.asp
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:WB*********************@news20.bellglobal.com ... MyFilePath = Server.MapPath("./csv/smart_myfile.csv")
Dim xlStr Dim MyFSO
Set MyFSO = CreateObject("Scripting.FileSystemObject")
if MyFSO.FileExists(MyFilePath) = True Then Set fileObject = MyFSO.GetFile(MyFilePath) fileObject.Delete Set fileObject = Nothing end if
Dim MyXLFile Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) MyXLFile.WriteLine "test" MyXLFile.Close Set MyXLFile = Nothing
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: #d**************@TK2MSFTNGP11.phx.gbl... Can you post the whole of your code so I can check it on my machine?
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:qY*********************@news20.bellglobal.com ... It doesn't work. In fact this line " if MyFSO.FileExists(MyFilePath) = True Then " works But not this one " Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) "
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: uC**************@TK2MSFTNGP15.phx.gbl... > Change that to; > > MyFilePath = Server.MapPath("./csv/myfile.csv") > > -- > > Regards > > Steven Burn > Ur I.T. Mate Group > www.it-mate.co.uk > > Keeping it FREE! > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > news:jv*********************@news20.bellglobal.com ... > > > > MyFilePath = Server.MapPath(".") & "\csv\myfile.csv" > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message
de news: > > ui**************@TK2MSFTNGP12.phx.gbl... > > > And MyFilePath contains? > > > > > > As an FYI, info on using this method can be found at MSDN; > > > > > > http://surl.co.uk/?1092 > > > > > > Original URL: > > > > > > http://msdn.microsoft.com/library/de...us/script56/ht > > > ml/jsmthcreatetextfile.asp > > > > > > -- > > > > > > Regards > > > > > > Steven Burn > > > Ur I.T. Mate Group > > > www.it-mate.co.uk > > > > > > Keeping it FREE! > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > news:0F*********************@news20.bellglobal.com ... > > > > oups, sorry, this is my code : > > > > > > > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > > > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de > > news: > > > > Ow**************@TK2MSFTNGP15.phx.gbl... > > > > > We won't have any idea until you post the script your > using.......... > > > > > > > > > > -- > > > > > > > > > > Regards > > > > > > > > > > Steven Burn > > > > > Ur I.T. Mate Group > > > > > www.it-mate.co.uk > > > > > > > > > > Keeping it FREE! > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > > news:Ag*********************@news20.bellglobal.com ... > > > > > > Hi, > > > > > > > > > > > > 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. > > > > > > Do you have any idea ? > > > > > > Thanks. > > > > > > SD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
That is the problem. If it works on your server, why is it not works on mine
? I put all writing/reading/executing rights on IIS.
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news:
#q**************@TK2MSFTNGP14.phx.gbl... It's working just fine here.........
http://mysteryfcm.plus.com/test/test.asp
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:WB*********************@news20.bellglobal.com ... MyFilePath = Server.MapPath("./csv/smart_myfile.csv")
Dim xlStr Dim MyFSO
Set MyFSO = CreateObject("Scripting.FileSystemObject")
if MyFSO.FileExists(MyFilePath) = True Then Set fileObject = MyFSO.GetFile(MyFilePath) fileObject.Delete Set fileObject = Nothing end if
Dim MyXLFile Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) MyXLFile.WriteLine "test" MyXLFile.Close Set MyXLFile = Nothing
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de
news: #d**************@TK2MSFTNGP11.phx.gbl... Can you post the whole of your code so I can check it on my machine?
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:qY*********************@news20.bellglobal.com ... > It doesn't work. > In fact this line " if MyFSO.FileExists(MyFilePath) = True Then " works > But not this one " Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) " > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: > uC**************@TK2MSFTNGP15.phx.gbl... > > Change that to; > > > > MyFilePath = Server.MapPath("./csv/myfile.csv") > > > > -- > > > > Regards > > > > Steven Burn > > Ur I.T. Mate Group > > www.it-mate.co.uk > > > > Keeping it FREE! > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > news:jv*********************@news20.bellglobal.com ... > > > > > > MyFilePath = Server.MapPath(".") & "\csv\myfile.csv" > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le
message de > news: > > > ui**************@TK2MSFTNGP12.phx.gbl... > > > > And MyFilePath contains? > > > > > > > > As an FYI, info on using this method can be found at MSDN; > > > > > > > > http://surl.co.uk/?1092 > > > > > > > > Original URL: > > > > > > > > > > http://msdn.microsoft.com/library/de...us/script56/ht > > > > ml/jsmthcreatetextfile.asp > > > > > > > > -- > > > > > > > > Regards > > > > > > > > Steven Burn > > > > Ur I.T. Mate Group > > > > www.it-mate.co.uk > > > > > > > > Keeping it FREE! > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > news:0F*********************@news20.bellglobal.com ... > > > > > oups, sorry, this is my code : > > > > > > > > > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > > > > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > > > > > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le
message de > > > news: > > > > > Ow**************@TK2MSFTNGP15.phx.gbl... > > > > > > We won't have any idea until you post the script your > > using.......... > > > > > > > > > > > > -- > > > > > > > > > > > > Regards > > > > > > > > > > > > Steven Burn > > > > > > Ur I.T. Mate Group > > > > > > www.it-mate.co.uk > > > > > > > > > > > > Keeping it FREE! > > > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > > > news:Ag*********************@news20.bellglobal.com ... > > > > > > > Hi, > > > > > > > > > > > > > > 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. > > > > > > > Do you have any idea ? > > > > > > > Thanks. > > > > > > > SD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Normally I'd have been inclined to blame a permissions issue, but as you've
already checked those, I'm afraid I've no idea.
Do you get _any_ error messages at all?. If not, try making sure debugging
is enabled;
In the IIS manager;
Right click your website and select "Properties", then click the Home
Directory tab.
Next click the Configuration button, followed by the Debugging tab, and make
sure both of the boxes are ticked (and additionally make sure the option to
send detailed error messages is selected).
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:cb******************@news20.bellglobal.com... That is the problem. If it works on your server, why is it not works on
mine ? I put all writing/reading/executing rights on IIS.
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: #q**************@TK2MSFTNGP14.phx.gbl... It's working just fine here.........
http://mysteryfcm.plus.com/test/test.asp
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:WB*********************@news20.bellglobal.com ... MyFilePath = Server.MapPath("./csv/smart_myfile.csv")
Dim xlStr Dim MyFSO
Set MyFSO = CreateObject("Scripting.FileSystemObject")
if MyFSO.FileExists(MyFilePath) = True Then Set fileObject = MyFSO.GetFile(MyFilePath) fileObject.Delete Set fileObject = Nothing end if
Dim MyXLFile Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) MyXLFile.WriteLine "test" MyXLFile.Close Set MyXLFile = Nothing
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: #d**************@TK2MSFTNGP11.phx.gbl... > Can you post the whole of your code so I can check it on my machine? > > -- > > Regards > > Steven Burn > Ur I.T. Mate Group > www.it-mate.co.uk > > Keeping it FREE! > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > news:qY*********************@news20.bellglobal.com ... > > It doesn't work. > > In fact this line " if MyFSO.FileExists(MyFilePath) = True Then
" works > > But not this one " Set MyXLFile = MyFSO.CreateTextFile(MyFilePath)
" > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message
de news: > > uC**************@TK2MSFTNGP15.phx.gbl... > > > Change that to; > > > > > > MyFilePath = Server.MapPath("./csv/myfile.csv") > > > > > > -- > > > > > > Regards > > > > > > Steven Burn > > > Ur I.T. Mate Group > > > www.it-mate.co.uk > > > > > > Keeping it FREE! > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > news:jv*********************@news20.bellglobal.com ... > > > > > > > > MyFilePath = Server.MapPath(".") & "\csv\myfile.csv" > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de > > news: > > > > ui**************@TK2MSFTNGP12.phx.gbl... > > > > > And MyFilePath contains? > > > > > > > > > > As an FYI, info on using this method can be found at MSDN; > > > > > > > > > > http://surl.co.uk/?1092 > > > > > > > > > > Original URL: > > > > > > > > > > > > > > > http://msdn.microsoft.com/library/de...us/script56/ht > > > > > ml/jsmthcreatetextfile.asp > > > > > > > > > > -- > > > > > > > > > > Regards > > > > > > > > > > Steven Burn > > > > > Ur I.T. Mate Group > > > > > www.it-mate.co.uk > > > > > > > > > > Keeping it FREE! > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > > news:0F*********************@news20.bellglobal.com ... > > > > > > oups, sorry, this is my code : > > > > > > > > > > > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > > > > > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > > > > > > > > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message > de > > > > news: > > > > > > Ow**************@TK2MSFTNGP15.phx.gbl... > > > > > > > We won't have any idea until you post the script your > > > using.......... > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > Steven Burn > > > > > > > Ur I.T. Mate Group > > > > > > > www.it-mate.co.uk > > > > > > > > > > > > > > Keeping it FREE! > > > > > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > > > > news:Ag*********************@news20.bellglobal.com ... > > > > > > > > Hi, > > > > > > > > > > > > > > > > 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. > > > > > > > > Do you have any idea ? > > > > > > > > Thanks. > > > > > > > > SD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
I would give the Local Users group RWED. I did that on my server and
magically all worked. If IUSR_machine account has RWXD and you dont specify
the local USERSs group, then IUSR will be restricted to the permissions
inherited by the parent directory.
At least, that's what I had to do.
Hope it helps.
RG
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:Ag*********************@news20.bellglobal.com ... Hi,
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. Do you have any idea ? Thanks. SD
> ? I put all writing/reading/executing rights on IIS.
What account are you giving the permissions to - IUSR_machineName ?
Bob Lehmann
"Séverine Donnay" <sd*****@winooz.net> wrote in message
news:cb******************@news20.bellglobal.com... That is the problem. If it works on your server, why is it not works on
mine ? I put all writing/reading/executing rights on IIS.
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: #q**************@TK2MSFTNGP14.phx.gbl... It's working just fine here.........
http://mysteryfcm.plus.com/test/test.asp
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:WB*********************@news20.bellglobal.com ... MyFilePath = Server.MapPath("./csv/smart_myfile.csv")
Dim xlStr Dim MyFSO
Set MyFSO = CreateObject("Scripting.FileSystemObject")
if MyFSO.FileExists(MyFilePath) = True Then Set fileObject = MyFSO.GetFile(MyFilePath) fileObject.Delete Set fileObject = Nothing end if
Dim MyXLFile Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) MyXLFile.WriteLine "test" MyXLFile.Close Set MyXLFile = Nothing
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: #d**************@TK2MSFTNGP11.phx.gbl... > Can you post the whole of your code so I can check it on my machine? > > -- > > Regards > > Steven Burn > Ur I.T. Mate Group > www.it-mate.co.uk > > Keeping it FREE! > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > news:qY*********************@news20.bellglobal.com ... > > It doesn't work. > > In fact this line " if MyFSO.FileExists(MyFilePath) = True Then
" works > > But not this one " Set MyXLFile = MyFSO.CreateTextFile(MyFilePath)
" > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message
de news: > > uC**************@TK2MSFTNGP15.phx.gbl... > > > Change that to; > > > > > > MyFilePath = Server.MapPath("./csv/myfile.csv") > > > > > > -- > > > > > > Regards > > > > > > Steven Burn > > > Ur I.T. Mate Group > > > www.it-mate.co.uk > > > > > > Keeping it FREE! > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > news:jv*********************@news20.bellglobal.com ... > > > > > > > > MyFilePath = Server.MapPath(".") & "\csv\myfile.csv" > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de > > news: > > > > ui**************@TK2MSFTNGP12.phx.gbl... > > > > > And MyFilePath contains? > > > > > > > > > > As an FYI, info on using this method can be found at MSDN; > > > > > > > > > > http://surl.co.uk/?1092 > > > > > > > > > > Original URL: > > > > > > > > > > > > > > > http://msdn.microsoft.com/library/de...us/script56/ht > > > > > ml/jsmthcreatetextfile.asp > > > > > > > > > > -- > > > > > > > > > > Regards > > > > > > > > > > Steven Burn > > > > > Ur I.T. Mate Group > > > > > www.it-mate.co.uk > > > > > > > > > > Keeping it FREE! > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > > news:0F*********************@news20.bellglobal.com ... > > > > > > oups, sorry, this is my code : > > > > > > > > > > > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > > > > > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > > > > > > > > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message > de > > > > news: > > > > > > Ow**************@TK2MSFTNGP15.phx.gbl... > > > > > > > We won't have any idea until you post the script your > > > using.......... > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > Steven Burn > > > > > > > Ur I.T. Mate Group > > > > > > > www.it-mate.co.uk > > > > > > > > > > > > > > Keeping it FREE! > > > > > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > > > > news:Ag*********************@news20.bellglobal.com ... > > > > > > > > Hi, > > > > > > > > > > > > > > > > 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. > > > > > > > > Do you have any idea ? > > > > > > > > Thanks. > > > > > > > > SD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
I found the solution it comes from Norton : I need to disabled script
blocking in Norton Antivirus. Now it works !
"Bob Lehmann" <no****@dontbotherme.zzz> a écrit dans le message de news:
#O**************@tk2msftngp13.phx.gbl... ? I put all writing/reading/executing rights on IIS. What account are you giving the permissions to - IUSR_machineName ?
Bob Lehmann
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:cb******************@news20.bellglobal.com... That is the problem. If it works on your server, why is it not works on mine ? I put all writing/reading/executing rights on IIS.
"Steven Burn" <so*******@in-time.invalid> a écrit dans le message de
news: #q**************@TK2MSFTNGP14.phx.gbl... It's working just fine here.........
http://mysteryfcm.plus.com/test/test.asp
--
Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
"Séverine Donnay" <sd*****@winooz.net> wrote in message news:WB*********************@news20.bellglobal.com ... > MyFilePath = Server.MapPath("./csv/smart_myfile.csv") > > Dim xlStr > Dim MyFSO > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > if MyFSO.FileExists(MyFilePath) = True Then > Set fileObject = MyFSO.GetFile(MyFilePath) > fileObject.Delete > Set fileObject = Nothing > end if > > Dim MyXLFile > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > MyXLFile.WriteLine "test" > MyXLFile.Close > Set MyXLFile = Nothing > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de news: > #d**************@TK2MSFTNGP11.phx.gbl... > > Can you post the whole of your code so I can check it on my
machine? > > > > -- > > > > Regards > > > > Steven Burn > > Ur I.T. Mate Group > > www.it-mate.co.uk > > > > Keeping it FREE! > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > news:qY*********************@news20.bellglobal.com ... > > > It doesn't work. > > > In fact this line " if MyFSO.FileExists(MyFilePath) = True Then " > works > > > But not this one " Set MyXLFile =
MyFSO.CreateTextFile(MyFilePath) " > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le
message de > news: > > > uC**************@TK2MSFTNGP15.phx.gbl... > > > > Change that to; > > > > > > > > MyFilePath = Server.MapPath("./csv/myfile.csv") > > > > > > > > -- > > > > > > > > Regards > > > > > > > > Steven Burn > > > > Ur I.T. Mate Group > > > > www.it-mate.co.uk > > > > > > > > Keeping it FREE! > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > news:jv*********************@news20.bellglobal.com ... > > > > > > > > > > MyFilePath = Server.MapPath(".") & "\csv\myfile.csv" > > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans le message de > > > news: > > > > > ui**************@TK2MSFTNGP12.phx.gbl... > > > > > > And MyFilePath contains? > > > > > > > > > > > > As an FYI, info on using this method can be found at MSDN; > > > > > > > > > > > > http://surl.co.uk/?1092 > > > > > > > > > > > > Original URL: > > > > > > > > > > > > > > > > > > > > >
http://msdn.microsoft.com/library/de...us/script56/ht > > > > > > ml/jsmthcreatetextfile.asp > > > > > > > > > > > > -- > > > > > > > > > > > > Regards > > > > > > > > > > > > Steven Burn > > > > > > Ur I.T. Mate Group > > > > > > www.it-mate.co.uk > > > > > > > > > > > > Keeping it FREE! > > > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in message > > > > > > news:0F*********************@news20.bellglobal.com ... > > > > > > > oups, sorry, this is my code : > > > > > > > > > > > > > > Set MyFSO = CreateObject("Scripting.FileSystemObject") > > > > > > > Set MyXLFile = MyFSO.CreateTextFile(MyFilePath) > > > > > > > > > > > > > > > > > > > > > "Steven Burn" <so*******@in-time.invalid> a écrit dans
le > message > > de > > > > > news: > > > > > > > Ow**************@TK2MSFTNGP15.phx.gbl... > > > > > > > > We won't have any idea until you post the script your > > > > using.......... > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > > Steven Burn > > > > > > > > Ur I.T. Mate Group > > > > > > > > www.it-mate.co.uk > > > > > > > > > > > > > > > > Keeping it FREE! > > > > > > > > > > > > > > > > "Séverine Donnay" <sd*****@winooz.net> wrote in
message > > > > > > > > news:Ag*********************@news20.bellglobal.com ... > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > 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. > > > > > > > > > Do you have any idea ? > > > > > > > > > Thanks. > > > > > > > > > SD > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: spradl |
last post by:
Hi,
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...
|
by: eddie wang |
last post by:
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...
|
by: Anchorman |
last post by:
A few days ago, I upgraded my browser to the very latest version, and
updated to the latest service pack on my Windows 2000 machine. Since that
time, as I'm testing my ASP applications on my...
|
by: NeilS |
last post by:
I'm developing under IIS V5.1 and testing on an ethernet with IIS hosted on
WinXPPro.
I am trying to implement file-upload using a polished version of the
technique published in...
|
by: Dan |
last post by:
hi ng.
i have a strange behaviour when i want to control who can access a web
application by setting web.config like:
<authorization>
<allow users="DOMAIN\ACCOUNT,..." />
<deny users="*" />
...
|
by: profdotnet |
last post by:
Below is the code of web.config file:
<configuration>
<system.web>
<authentication mode="Forms" />
<authorization>
<allow users="Admin"/>
<deny users="Jack,Mary" />
<deny users="?">...
|
by: Iain Bishop |
last post by:
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...
|
by: Markus Palme |
last post by:
Hi NG!
Is it possible to deny access to a (logged in) user that is not in any
role? Placeholders like <deny roles="?"/don't seem to be possible.
Regards
Markus
<location...
|
by: Douglas J. Badin |
last post by:
Hi,
The problem with Authorization is it stops at the first match and doesn't
permit Grouping.
On the Web Site, I am trying to Secure Page Access and SiteNaviagation by
implementing the...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |