forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


oppress Windows error message

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
thomas
Newbie


Joined: 15 Jan 2003
Posts: 23
Location: Germany

PostPosted: Tue Jan 21, 2003 7:29 am    Post subject: oppress Windows error message Reply with quote

Hello,

When I try to delete a File that is in use, I get an error message from Microsoft NT (The file cannot delete...). Is it possible to oppress this message by dialogscript?

I use the syntax "file delete,path".

Thanks!!
Back to top
View user's profile Send private message
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Tue Jan 21, 2003 11:07 am    Post subject: Re: oppress Windows error message Reply with quote

thomas wrote:
Hello,

When I try to delete a File that is in use, I get an error message from Microsoft NT (The file cannot delete...). Is it possible to oppress this message by dialogscript?

I use the syntax "file delete,path".

Thanks!!

The message is already oppressed, unless you use SHOWERRORS.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
thomas
Newbie


Joined: 15 Jan 2003
Posts: 23
Location: Germany

PostPosted: Tue Jan 21, 2003 2:43 pm    Post subject: oppress Windows error message Reply with quote

I thought so too, but it does not work - the message will also shown if i use not showerrors. The message are not show by win2000 or winXP, only on NT Clients.
I think this is a bug.
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jan 21, 2003 3:01 pm    Post subject: Reply with quote

Try something like:

Code:
%%file = filename
list create,1
list add,1,delete %%file
list savefile,1,delete.bat

runh delete.bat,WAIT


In that case you wont get an error. Check with @file() if the file is deleted...
Back to top
View user's profile Send private message
thomas
Newbie


Joined: 15 Jan 2003
Posts: 23
Location: Germany

PostPosted: Tue Jan 21, 2003 3:13 pm    Post subject: Reply with quote

I do NOT want an error message. I want also do not want to use .bat files, i only want to use vds-Script.
Back to top
View user's profile Send private message
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Tue Jan 21, 2003 5:10 pm    Post subject: Reply with quote

thomas wrote:
I do NOT want an error message. I want also do not want to use .bat files, i only want to use vds-Script.

Then you should upgrade to 2000/XP Razz
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jan 21, 2003 6:38 pm    Post subject: Reply with quote

Good one! Very Happy
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Jan 21, 2003 8:32 pm    Post subject: Reply with quote

Only suggestion I can think of, is to find out which program is using the
file, and have your program shut down the other program, and then
delete the file.

-Garrett
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Jan 22, 2003 6:43 am    Post subject: Reply with quote

Another thing to think of when deleting files on NT4 systems: Don't try to delete files
which aren't there - that'll generate error messages as well. That's not the case on XP/2K boxes.

So instead of just
Code:
FILE DELETE,%%file

use something like
Code:
if @file(%%%%file)
 FILE DELETE, %%file
end


Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Wed Jan 22, 2003 4:33 pm    Post subject: Reply with quote

That still doesn't fix the problem Razz

Dr. Dread wrote:

Code:
if @file(%%%%file)
 FILE DELETE, %%file
end

hmmm, a little much of the %'s Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Jan 22, 2003 7:44 pm    Post subject: Reply with quote

Tsunami1988 wrote:
That still doesn't fix the problem Razz


I know, it was sort of a comment for another NT issue...

Tsunami1988 wrote:
hmmm, a little much of the %'s Wink


He-he, i guess I got a little carried away Very Happy

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
MarkTrubo
Contributor
Contributor


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Thu Jan 23, 2003 12:57 am    Post subject: Reply with quote

I'm pretty sure I delete files all the time with VDS on NT -- of course the programs are in my office, so I forgot how to do it now that I am at home. I'll check and post the answer.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Thu Jan 23, 2003 5:31 pm    Post subject: Reply with quote

I've had similar problems on NT and it ususally comes down to 1 of 3 things.

1) The file doen't exist. As Dread already pointed out 2000/XP and 95/98
do not generate an error but NT does so If @file would help

2) The profile the app is running as doesn't have sufficient rights to
delete the file.

3) The file is open and cannot be deleted. In which case you need to KILL
the app that has the file open. I think you use "run KILL -f filename"
(your app must have rights to do this). You can check the Task Manager
applications or processes to try and narrow down what has the file open
if you are unsure.

moke
Back to top
View user's profile Send private message Send e-mail
MarkTrubo
Contributor
Contributor


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Thu Jan 23, 2003 5:42 pm    Post subject: Reply with quote

Yup, I checked my programs and all -- Moke is right on the money with all three!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group