473,782 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("S cripting.FileSy stemObject")
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 4059
Gazing into my crystal ball I observed pa**@legalperfe ct.co.za (Paul)
writing in news:28******** *************** ***@posting.goo gle.com:
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("S cripting.FileSy stemObject")
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**@legalperfe ct.co.za (Paul)
: writing in news:28******** *************** ***@posting.goo gle.com:
:
: > 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("S cripting.FileSy stemObject")
: > 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
8338
by: Carolyn Speakman | last post by:
is it in any way possible to include a file specified by a variable name? Thanks, Carolyn
1
3896
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, \\myremote\c$\temp\hi.txt, true); This API is run from a web service that exposes it. The problem is as follows: 1) I request a page (On the web service machine) from my web server (Note
3
821
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 client machine is predefined within the program, I am using the HTMLInputFile control, postedfile, saveas ... and set the input control visibility to hidden. However, the control value is read only and there is no way I can set the client file...
4
3909
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 HtmlInputFile has an HttpPostedFile object containing the client side path to the selected file, there must be some way to resolve this path server side allowing me to open the file with as Stream object.. I've been looking at WebClient.OpenRead,...
4
4514
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 local machine at a pre defined path (path defined in the registry), and launch the file in its associated application. I think this can be done through ActiveX Controls, but i dont know how to create ActiveX controls in .NET??
1
4873
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 = Server.CreateObject("ADODB.Connection"); adoConnection.Open("driver={SQL Server};Server=ABCD;Database=AAA;UID=BBB;PWD=CCC"); adoConnection.Execute("update dbo.out set Schedule_Time = null where out_id =<%=oMyObject%>;");
0
1779
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 (server machine) not in client side(Client Machine). The file which is selected and open in client machine is always opening in server machine. Can any one give me notes about the idifference in client side and server side in JSP or in Servlet....
2
2398
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. I dropped some code in to echo out the name of the file that's about to be rmdir()ed or unoink()ed (depending if it's a file or a directory) to see if it was choking on a particular subdirectory, but doing that causes all the error messages to...
6
4850
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 would be my best options? Examples would be welcomed! rj
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10311
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.