468,248 Members | 1,490 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,248 developers. It's quick & easy.

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 3574
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Carolyn Speakman | last post: by
3 posts views Thread by Beatrice | last post: by
4 posts views Thread by Michael | last post: by
4 posts views Thread by sunilj20 | last post: by
1 post views Thread by Tony WONG | last post: by
6 posts views Thread by raymond_b_jimenez | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.