[Resolved] Need help on asp/vbs script..
I want to use the following script in a file:
Set si = fso.OpenTextFile(Request.ServerVariables("PATH_TRANSLATED") & "NewFile.txt", 2, True)
But my problem is that if i use this, then the output file will get a name like: "index.aspNewfile.txt"
Simply because of the "path_translated" gives the total path and filename..
So npw i wonder how an EASY way to SPLIT a variable containing the (Request.ServerVariables("PATH_TRANSLATED") info
so that the last /filename.asp would go away!
EG; it should make:
c:\docs\net\index.asp to c:\docs\net\
So that it reads the variable from end towards beginning and split at the first / i sees... Then removes everything from the end to the / ...
Can anyone help me with a short short script for that !?!?!?