what you are showing above is a (SSI) Server Side Include which isnt strictly speaking to do with asp. SSI's are more to do with CGI i think.
It used to be that to get ssi parsed u had to call your file .shtml
iirc you cant use ssi to include .asp coded pages cos ssi is executed after asp.
are you asking about including txt files in wsh scripts?
===============
Security Forums
u cant include a .txt file ina wsh script.
it just doesnt work like that. wsh is pure code. there's no place for the contents of .txt files.
if you want to process a text file that a different matter. You need to use filesystem object to open the file and then you can read the contents into a string or something. there many different ways.
perhaps if you can explain what this text file is, what it contains we can see how to proceed.
I have a script that will be scheduled to run everyday for three days on the two last days of the month and the first day of the next month. The processing will depend on the
the day (i.e. day = -2, day = -1, day = 0), and my script will go out and increment this variable after execution.
I want this script to run in batch so that I do not have to manually set the value of day (I might run the risk of forgetting to).
ok. vbscript has quite a lot of date functions in. I'm sure it's possible to write some algorithm that can determine whether its the appropriate day to run or not. then you can just schedule your vbs file to run every day.
i'll think about it later... ===============
Security Forums
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.