473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Delete file on client side machine

Is it possible to delete a file on a client side machine using VB/JAVA
script?

My website allows the user to upload a file to the website and after
that I would like to delete the file on their machine

I tried this:

Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile("C:\1-1-S.xml")

But it is always looking to the server machine? How do I say delete
file XYZ on client machine. Is this even possible with the security
issues?

Paul
Jul 22 '05 #1
3 4020
Gazing into my crystal ball I observed pa**@legalperfect.co.za (Paul)
writing in news:28**************************@posting.google.c om:
Is it possible to delete a file on a client side machine using VB/JAVA
script?

My website allows the user to upload a file to the website and after
that I would like to delete the file on their machine

I tried this:

Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile("C:\1-1-S.xml")

But it is always looking to the server machine? How do I say delete
file XYZ on client machine. Is this even possible with the security
issues?

Paul


Sure, delete *.*[1]

No, you can't do that. You could always put up some text telling the
client they should delete the file themselves.
[1] Back in the 80's, while I was out to lunch one day, one of the brokers
called the telcom person in the NY office. She said "Type in cd .. then
type in DEL *.*" The root was erased. Thank God I had Norton Unerase
floppies in my purse when I got back and restored everything.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #2
"Adrienne" wrote in message
news:Xn***************************@207.115.63.158. ..
: Gazing into my crystal ball I observed pa**@legalperfect.co.za (Paul)
: writing in news:28**************************@posting.google.c om:
:
: > Is it possible to delete a file on a client side machine using VB/JAVA
: > script?
: >
: > My website allows the user to upload a file to the website and after
: > that I would like to delete the file on their machine
: >
: > I tried this:
: >
: > Set fso = CreateObject("Scripting.FileSystemObject")
: > fso.DeleteFile("C:\1-1-S.xml")
: >
: > But it is always looking to the server machine? How do I say delete
: > file XYZ on client machine. Is this even possible with the security
: > issues?
: >
: > Paul
: >
:
: Sure, delete *.*[1]
:
: No, you can't do that. You could always put up some text telling the
: client they should delete the file themselves.
:
:
: [1] Back in the 80's, while I was out to lunch one day, one of the brokers
: called the telcom person in the NY office. She said "Type in cd .. then
: type in DEL *.*" The root was erased. Thank God I had Norton Unerase
: floppies in my purse when I got back and restored everything.

I've never had Norton UnErase floppies in my purse...or a purse either.
(O:=

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #3
Thanks, I thought as much I just needed confirmation
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Carolyn Speakman | last post by:
is it in any way possible to include a file specified by a variable name? Thanks, Carolyn
1
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt,...
3
by: Beatrice | last post by:
I am stuck with this problem and desperately need your help. I would like to upload an xml file or any file from client machine and then save it to the server machine. Since the file path on the...
4
by: Michael | last post by:
I am trying to open a file on the client machine from an aspx page running server side. The design requirements of the page specify that the HtmlInputFile control is not to be used. Since the...
4
by: sunilj20 | last post by:
Hello, I have a requirement wherein, a user clicks on a file name in an ASP.NET web application, and the file should automatically be downloaded (Without showing the "Open", "Save As") in the...
1
by: Tony WONG | last post by:
i wish to make use of javascript to delete a record by clicking a button, what's wrong with the following 3 lines? Thanks a lot. function confirmYes() { var adoConnection =...
0
by: gopikrishnan | last post by:
Hi to all, In Linux, I can able to open a odt file through JSP and Servlet coding. But there creates a problem.. When a client opens a odt file from his machine, the file opens in server side...
2
by: Gordon | last post by:
I'm trying to remove a directory and all its contents from within a script. I wrote a recursive function to take care of it, but when I run it I get random "Directory not empty" error messages. ...
6
by: raymond_b_jimenez | last post by:
I need to download a file from an Intranet web site and feed it into a program on the PC where the browser is running. Browser is Internet Explorer. Both Javascript and VBscript are options. Which...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.