Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / VB Syntax / July 2008



Tip: Looking for answers? Try searching our database.

how to make this works???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
acuralex54-medicalintelligence@yahoo.com - 07 Jul 2008 18:01 GMT
Option Explicit
Dim objShell
objShell.Run("del /F /Q ""C:\Documents and Settings\amaltais
\Application Data\Microsoft\Outlook\Outlook.NK2""")
acuralex54-medicalintelligence@yahoo.com - 07 Jul 2008 18:04 GMT
I mean:  the quotes issue.
Karl E. Peterson - 07 Jul 2008 22:15 GMT
>I mean:  the quotes issue.

The quotes look fine.  You need to invoke a command processor, though.
Signature

.NET: It's About Trust!
http://vfred.mvps.org

acuralex54-medicalintelligence@yahoo.com - 08 Jul 2008 14:07 GMT
> acuralex54-medicalintellige...@yahoo.com wrote:
> >I mean:  the quotes issue.
[quoted text clipped - 3 lines]
> .NET: It's About Trust!
>  http://vfred.mvps.org

sorry, i am not a programmer...  can you tell me more plz?
Karl E. Peterson - 08 Jul 2008 18:42 GMT
>> acuralex54-medicalintellige...@yahoo.com wrote:
>> >I mean: the quotes issue.
>>
>> The quotes look fine. You need to invoke a command processor, though.
>
> sorry, i am not a programmer...  can you tell me more plz?

You really don't need to be a programmer to understand this...

 -- is there an application named "del" anywhere on your computer?

 -- is that the application you intend to invoke?

Signature

.NET: It's About Trust!
http://vfred.mvps.org

acuralex54-medicalintelligence@yahoo.com - 10 Jul 2008 04:43 GMT
C:\>del /?
Deletes one or more files.

DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names

 names         Specifies a list of one or more files or directories.
               Wildcards may be used to delete multiple files. If a
               directory is specified, all files within the directory
               will be deleted.

 /P            Prompts for confirmation before deleting each file.
 /F            Force deleting of read-only files.
 /S            Delete specified files from all subdirectories.
 /Q            Quiet mode, do not ask if ok to delete on global
wildcard
 /A            Selects files to delete based on attributes
 attributes    R  Read-only files            S  System files
               H  Hidden files               A  Files ready for
archiving
               -  Prefix meaning not

If Command Extensions are enabled DEL and ERASE change as follows:

The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.
Michael Cole - 10 Jul 2008 09:11 GMT
> C:\>del /?
> Deletes one or more files.

That's not an application, that's a DOS Shell command.

Reread Karl's post.

Signature

Regards,

Michael Cole

Karl E. Peterson - 10 Jul 2008 17:46 GMT
> C:\>del /?
> Deletes one or more files.

And where, exactly, is this "application" stored?  Please be specific.
Signature

.NET: It's About Trust!
http://vfred.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.