PC Review


Reply
Thread Tools Rate Thread

Curious problem with 'kill', 'dir', and 'shell'. Thanks for help.

 
 
philip
Guest
Posts: n/a
 
      27th Mar 2006
It is the third time that I have this problem since two years :
The function 'kill', 'dir' and 'shell' doesn't function anymore.
More, the function 'kill' causes the exit of the current procedure.
I replaced these functions usinf object FileScripting.

But also, the function 'shell' doesn't function anymore.

So I have two questions :
1. Someone does he know the origin of this problem ?
2. How can I replace the 'shell' function ?

One solution only, if someone doesn't help me : reinstall Windows. I did
that twice in two years for this reason.
Burk !

Thanks for your help, sincerely.

Philip


 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      27th Mar 2006
philip wrote:

>It is the third time that I have this problem since two years :
>The function 'kill', 'dir' and 'shell' doesn't function anymore.
>More, the function 'kill' causes the exit of the current procedure.
>I replaced these functions usinf object FileScripting.
>
>But also, the function 'shell' doesn't function anymore.
>
>So I have two questions :
>1. Someone does he know the origin of this problem ?
>2. How can I replace the 'shell' function ?
>
>One solution only, if someone doesn't help me : reinstall Windows. I did
>that twice in two years for this reason.



That sounds like a security setting. Try checking Help for
Sandbox for details.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
Carl Colijn
Guest
Posts: n/a
 
      27th Mar 2006
In news:44272a86$0$18334$(E-Mail Removed),
philip <(E-Mail Removed)> typed:
> It is the third time that I have this problem since two years :
> The function 'kill', 'dir' and 'shell' doesn't function anymore.
> More, the function 'kill' causes the exit of the current procedure.
> I replaced these functions usinf object FileScripting.
>
> But also, the function 'shell' doesn't function anymore.
>
> So I have two questions :
> 1. Someone does he know the origin of this problem ?
> 2. How can I replace the 'shell' function ?
>
> One solution only, if someone doesn't help me : reinstall Windows. I
> did that twice in two years for this reason.
> Burk !


Hi Philip,

I'm not that much of an Access guru, but might it be that Kill etc. raises
an error? In that case: what's the error code? You can test it by
temporarily inserting two lines in your code;
On error resume next
above the Kill, and
Call Msgbox(Err.Number & ": " & Err.Description)
below the Kill.

I can see Kill throwing an error when the file you want to kill is locked,
or when you operate from within the wrong folder and do not specify a path
for the file to kill. The last cause will also probably cause Dir and Shell
to misfunction.

Kind regards,
Carl Colijn


 
Reply With Quote
 
philip
Guest
Posts: n/a
 
      27th Mar 2006
I tried what you tell, but on line "kill", the program exits from procedure
immediately, without detecting an error...

Thanks for your help

"Carl Colijn" <(E-Mail Removed)> a écrit dans le message de news:
QHPVf.8201$zc1.7308@amstwist00...
> In news:44272a86$0$18334$(E-Mail Removed),
> philip <(E-Mail Removed)> typed:
>> It is the third time that I have this problem since two years :
>> The function 'kill', 'dir' and 'shell' doesn't function anymore.
>> More, the function 'kill' causes the exit of the current procedure.
>> I replaced these functions usinf object FileScripting.
>>
>> But also, the function 'shell' doesn't function anymore.
>>
>> So I have two questions :
>> 1. Someone does he know the origin of this problem ?
>> 2. How can I replace the 'shell' function ?
>>
>> One solution only, if someone doesn't help me : reinstall Windows. I
>> did that twice in two years for this reason.
>> Burk !

>
> Hi Philip,
>
> I'm not that much of an Access guru, but might it be that Kill etc. raises
> an error? In that case: what's the error code? You can test it by
> temporarily inserting two lines in your code;
> On error resume next
> above the Kill, and
> Call Msgbox(Err.Number & ": " & Err.Description)
> below the Kill.
>
> I can see Kill throwing an error when the file you want to kill is locked,
> or when you operate from within the wrong folder and do not specify a path
> for the file to kill. The last cause will also probably cause Dir and
> Shell to misfunction.
>
> Kind regards,
> Carl Colijn
>



 
Reply With Quote
 
philip
Guest
Posts: n/a
 
      27th Mar 2006
Yes, you were right.
That was the result of 'macro security' of kaspersky.
Ouf.
It is a great help for me.
Thanks sincerely.
Philip

"Marshall Barton" <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
> philip wrote:
>
>>It is the third time that I have this problem since two years :
>>The function 'kill', 'dir' and 'shell' doesn't function anymore.
>>More, the function 'kill' causes the exit of the current procedure.
>>I replaced these functions usinf object FileScripting.
>>
>>But also, the function 'shell' doesn't function anymore.
>>
>>So I have two questions :
>>1. Someone does he know the origin of this problem ?
>>2. How can I replace the 'shell' function ?
>>
>>One solution only, if someone doesn't help me : reinstall Windows. I did
>>that twice in two years for this reason.

>
>
> That sounds like a security setting. Try checking Help for
> Sandbox for details.
>
> --
> Marsh
> MVP [MS Access]



 
Reply With Quote
 
philip
Guest
Posts: n/a
 
      27th Mar 2006
It was a Kasperky protection on macros...
Thanks

"Carl Colijn" <(E-Mail Removed)> a écrit dans le message de news:
QHPVf.8201$zc1.7308@amstwist00...
> In news:44272a86$0$18334$(E-Mail Removed),
> philip <(E-Mail Removed)> typed:
>> It is the third time that I have this problem since two years :
>> The function 'kill', 'dir' and 'shell' doesn't function anymore.
>> More, the function 'kill' causes the exit of the current procedure.
>> I replaced these functions usinf object FileScripting.
>>
>> But also, the function 'shell' doesn't function anymore.
>>
>> So I have two questions :
>> 1. Someone does he know the origin of this problem ?
>> 2. How can I replace the 'shell' function ?
>>
>> One solution only, if someone doesn't help me : reinstall Windows. I
>> did that twice in two years for this reason.
>> Burk !

>
> Hi Philip,
>
> I'm not that much of an Access guru, but might it be that Kill etc. raises
> an error? In that case: what's the error code? You can test it by
> temporarily inserting two lines in your code;
> On error resume next
> above the Kill, and
> Call Msgbox(Err.Number & ": " & Err.Description)
> below the Kill.
>
> I can see Kill throwing an error when the file you want to kill is locked,
> or when you operate from within the wrong folder and do not specify a path
> for the file to kill. The last cause will also probably cause Dir and
> Shell to misfunction.
>
> Kind regards,
> Carl Colijn
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing the command shell will not kill its child process ? for.fun@laposte.net Windows XP General 2 11th May 2006 08:30 AM
Curious "Shell Execute Hooks" Trichlo Security and Anti-Spyware Community 1 12th Sep 2005 08:55 PM
LSA Shell (Export Version) Message: "LSA Shell encountered a problem Windows is shutting down and must be restarted" =?Utf-8?B?RWRlbiBW?= Windows XP Accessibility 4 30th Apr 2004 02:11 AM
Curious Problem.. Rob Meade Microsoft ASP .NET 16 26th Apr 2004 08:41 PM
xp shell command to kill/end process tree Sudhendra Windows XP General 1 4th Feb 2004 05:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:43 AM.