Ruffnekk,
I can't check only for the FileAttribute since the file may be read-only or not. If it is read-only, fine noone can modify it and can check it with your function. Now if it is not read-only, the user may or may not have write access on the file. Either because of OS security settings...
My code is in a function and needs the Return True to perform additional tasks :)
Well I'll stick with your suggestion. ;) If someone else has another method let me know.
Thanks TipGiver
Is it really good programming practice?
If I do what you suggest, I would have something like this:
Try
.
.
.
' Opens writer
swFile = New System.IO.StreamWriter(FilePath, False, System.Text.Encoding.Unicode)
Return True
Catch exIO AS System.IO.IOException
' Writer...
Hi
I have a text file that I use to hold some information. At one point, this text file needs to be edited. So far so good. The problem is that the file may be located on a media that does not allow write access (floppy with write protect, CD, or no write access on file for user).
I've tried...
Hi
I have an application developed in access 2003, which loads custom libraries(also in access 2k3). The problem is that everytime a library is modified (a property/function/ whatever) then the development environment crashes, with the send/don't send box. what can be the reason for this? it's...
Hi
i'm trying to package my application in an MSI project using installshield Premier 10.5. Now i want to be able to show a dialog when the user selects a particular feature in custom setup. How can i do it?
Thanks
Hi
Are you sure you have enabled IIS to execute .asp pages? Check in Default Web Site properties -> Home Directory -> Configuration -> Mappings. See if .asp is in the list. If not, add it
The company I work for uses IIS already, and there's too much implication to shift to apache webserver (lot of things to move and application to install again + i doubt it that the app will use the apache webserver as default)
Thanks for suggestion though :)
Hi
I'm trying to host multiple websites on a single computer. My problem here is that I can't get started because I don't even get the NEW option when i right-click Web site in IIS.
I'm testing this on Win XP Pro SP2/IIS 5.1 before eventually moving to Win 2k3 Server/IIS 6.0
Is it a problem...
Dan,
no i get the same error. Can it be that there is some syntax error somewhere that i haven't spotted?
I've checked the URLs that are passed as arguments, and they are correct.
Helo
I have this function for preloading some images from dreamweaver:
function MM_preloadImages() { //v3.0
var d=document;
if(d.images)
{
if(!d.MM_p) d.MM_p=new Array();
var i,j,a;
j=d.MM_p.length;
a=MM_preloadImages.arguments;
for(i=0; i<a.length; i++)
{...
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.