Set File/User Permission With ASP/VBScript To A File

i would like to add a user and set file permission to a file with ASP.
(No component). is that possible ? do you have a link ? an example ?

View Replies


ADVERTISEMENT

Vbscript Include File In Jscript File

I have an asp page written entirely in jscript with a vbscript used as an include file which one variable on the page must access.

When the page runs, I run into jscript complilation errors when it tries to access the include file (since it is written in vbscript), and I can't figure out how to get the two to work together. How do you get both scripting languages to work on the same page?

View Replies View Related

Streaming File To User: 'File Could Not Be Opened'

I have a page on our intranet that is supposed to stream an Excel sheet to
the user. I'm using pretty standard code:

View Replies View Related

Permission Denied When Uploading File

When I'm uploading a file to my server I get:

Microsoft VBScript runtime error '800a0046'

Permission denied

/test/en_sendmail_proposta.asp, line 295

the code where it is the error is:

Set objFile = objFSO.CreateTextFile(strPath)

the folder has full control on everyone only....

View Replies View Related

Permission Denied Error When Opening And Writing To File

I have a script that opens a file and writes to it using ASP. I've used the script before and it worked fine locally, until recently, after I upgraded my computer to Windows XP Pro SP2. Also, it still works fine when I upload the script to my web host. However, locally on my computer using IIS, I get the error:

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied

This occurs on the line: Set FileTS = FileFSO.OpenTextFile(Server.MapPath(".") & "" & FileName,2,TRUE)

I've searched online for answers and most articles say I have to set read and write access to the containing folder. I have done so for the containing folder and for the entire "wwwroot" folder, but the problem still occurs. I have also allowed anonymous access for my computer IUSR_XXXXX. This doesn't work either.

View Replies View Related

Getting A ASP File Name Via VBScript

Is there a function in VBScript that will return the name of the file
that is currently being executed? Basically, I'm looking for a function
that I can use in code similar to this...

<% response.write "The name of this file is - " thisFile.fileName %>

which will result in

The name of this file is - home.asp

being displayed on the page with home.asp executes.

View Replies View Related

Vbscript Permission

I'd consider myself a newbie to ASP using VBSCRIPT with WMI, but I've been using Scriptomatic and learning lots. I have an ASP page with over 1K of code retrieving many objects from user defined remote computer: CDROM, CPU, Chassis, Products, RAM, Shares and more.

Why do some computers return nothing while others return results? No rhyme nor reason to this. Some Win3k return nothing for certain objects and other Win3k return a result set.

Why can't anyone else run this page? My XP IIS has the following authentication: Integrated, Digest, Basic. When anybody else, even somebody with the same access as myself, access the ASP page and they are authenticated against the domain, they can't get the objects listed above.

View Replies View Related

Vbscript To Launch Exe File

I'm writing an intranet-only browser based application. I need to launch either a SETUP.EXE that is on a network drive or a shortcut on a local drive that points to the exe on the network drive
I already know how to launch a local exe, for example:
Set objApp = CreateObject("WScript.Shell")
objApp.Run "cmd /C CD C: & Program Files & SomeFolder & SETUP"

View Replies View Related

Vbscript To Run A Batch File

I have a batch file that needs to execute every day and I need to run it in a silent/invisible mode. I looked up on the Internet and found this command: shell("batchfilename.bat").

Upon failure, learned that it is a Visual Basic command and not VBScript command. I wonder if anyone knows how to run a batch file using vbscript that runs in invisible mode?

View Replies View Related

How To Create A File In ASP/VBScript?

What options/methos/properties/functions/objects do I have in order to
create a Function in ASP/VBScript that process/create binary data as an image
file type?

The Function is supoosed to get 2 parameters:
1. The file image content type defined as "image/bmp" , strContentType
2. the file binary data, binDataImageBytes (which is stored in session
vars)

The Function should return/create an Image File , for instance
~tmpImg.BMP

My Question is
How to create a binary Image file type from the session var binary
data ?

View Replies View Related

Parsing A Text File With Vbscript

I know this is a little off topic, but this is the best resource I know of for anything coding related.

I'm needing to read through a text file that will have the following format:

c:ools
c:docs
c:htdocs

And have the the results put in an array for later processing. What I'm trying to build is a small vbscript that will automatically backup each path that may be in a given txt file.

View Replies View Related

Can I Use VBScript In An Include File Statement

I want to include a file in a web page according to some details that are retrieved from a database. I have typed the following code:

<% filename = Session("LModCode") & Session("ClassID") & ".inc" %>

<!--#include file="<%=filename%>" -->

This doesn't work. There is nothing wrong with Session variables that I know of, both values are present when i write them to the page. Is it not possible to use vbscript within an include statement?

View Replies View Related

Getting File Title Property Using Vbscript

I am trying to dynamically generate links on a webpage base on a list of file using their title property as the link text. My problem is I don't know how to get the title property of the file. Is there a object or dll i can use?

View Replies View Related

Stream File To User

I have a page on our intranet that is supposed to stream an Excel sheet to the user.

View Replies View Related

Check Existence Of File Using VBScript In ASP Page

Is there a way to check if a file exist using VBScript in an ASP page.
So the code might go something like this:

If Exists("C:Junk1.txt") then
Do something
Else
Do something else
End If

View Replies View Related

Reading And Writing Text File Using Vbscript

i had a vbscript that will read the text file from the bottom to the top, and after reading the file, it will be displayed in the screen, and the code look like this:
PHP Code: Code:

View Replies View Related

Save A File On User Harddisk

How do i save a file on the users harddisk in C:...?

View Replies View Related

Allowed User To Upload File

I want to allowed my user to upload file to site. how can I make this work. so can anybody help me with this issueI will be using this software to build this application.

View Replies View Related

Weird Error When Creating A .CSV File With VBScript On IIS6.

I have a page that creates a .CSV file that has been migrated over to
Windows Server 2003 from Windows 2000 Server. It worked fine before I
moved it, but now when it creates the .CSV file, and you open it, the
first row opens in cell A1 and the second row opens in cell A2. Code:

View Replies View Related

Microsoft VBScript Runtime (0x800A0046), Permission Denied

I have created an email app with asp.When I try to send I get this message.Error Type:

Microsoft VBScript runtime (0x800A0046)
Permission denied

I know it has something to do with the IUSR & IWAM accounts on the server.How do these have to be set?

View Replies View Related

Allowing User To Download File From Webpage

I would like to be able to allow the viewer of a website to download a file when they request it. Like seen at tucows or download.com

Can someone give me some rough pointers on where to get started?

View Replies View Related

Who Block Download File If Not User Logging?

I using ASP Windows 2003, i need in my web site, block files to download. if a user is logged, when download a file the direction of file save in URL, example:

http://mysite/files/test.xls

and any user get this file written this direction in URL, i like to block file or folder if the user is not logged.

The logging use session, and MySQL ...

View Replies View Related

How To Redirect The User To New Page After Downloading An Mp3 File

I have set of mp3 files as a list (DownloadFiles.asp). The user can click on any of the mp3 files to download(Download_Porcess.asp).After downloading the file the user has to redirect to the DownloadFiles.asp.

For this i used:

response.contenttype="audio/mpeg3",
response.binarywrite("binarystreamofmp3file)

In Download_Process.asp to force the save dialog box. This works fine. This allows the user to download the file. After downloading this mp3 file, this file should not be displayed in the list ie in (DownloadFiles.asp).

How can i do this?

I am not able to redirect from Download_Process.asp to DownloadFiles.asp, b'coz I used response.binarywrite.

View Replies View Related

Show Path Of Uploaded File To User

I have an upload script but i would like to show the person who uploaded the file the path to the file he uploaded. Ex: http://site.com/images/uploadedfile.jpg.

View Replies View Related

How Does The User Get Prompted To Save A Text File?

When the user clicks on a hyper link to save the text file, the browser opens the file in a new window. Is there any way of prompting the user to save the file onto their computer?

View Replies View Related

How To Use Database To Check User Permission Level

i'm going to ask the way to use database to check user permission level in asp..

View Replies View Related

Giving Access Permission To Specific User

I want to create directory and set access permission to specific user.

i tried with wscript but it's not working, i used "cacls" command it's working only NTFS partition but i used to fat32 . how to set directory permission with asp script
on fat32 so anyone help me?

View Replies View Related

Permission Denied :: Microsoft VBScript Runtime Error '800a0046'

I have made a asp mailform.

What is wrong?

I get this error:

Microsoft VBScript runtime error '800a0046'

Permission denied

/fh/medlemsnett/send_mail.asp, line 26

Line 26 looks like this:

objCDONTS.Send

Here is the code: ....

View Replies View Related

Permission Denied Microsoft VBScript Runtime Error '800a0046'

The error is:

Microsoft VBScript runtime error '800a0046'

Permission denied

/tasks/SetTask_dbTask.asp, line 30

The problem is only on Insert statements. Update Statements work fine....

View Replies View Related

Error :: Opened Exclusively By Another User, Or You Need Permission To View Its Data

I keep getting an error that says:

Error Type:
Microsoft JET Database Engine (0x80004005)
The Microsoft Jet database engine cannot open the file 'c:inetpubwwwrootannoneil\_databaseannoneil_AN D.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
/annoneil/artist.asp, line 96

The code was working fine a few days ago but now I cannot figure this out.

View Replies View Related

Opening Server-side Excel File Then Modifying It Client Side Using Vbscript

is it possible to open an excel file (used as a template) from server using server-side vbscript; then modify it or add values from client using client-side vbscript?

View Replies View Related

Converting An Image File To Hexa, Read Text File

i'm converting an image file to hexa..then the hexa is saved to a text file..

can any one help me how to read the content text of a text file?...

im doing it this way because i don't want to save hexa in my database, because it makes the database slower to open up.

View Replies View Related

File Properties :: Find Out The Width And Height Of An Image File

is there a way, using asp, to find out the width and height of an image file?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved