Page 1 of 1 1
Topic Options
#213833 - 2020-02-28 07:54 PM Delete File if exists
srm11671 Offline
Fresh Scripter

Registered: 2020-02-21
Posts: 5
Loc: FL
Hey Kix Team..
having an issue with a stubborn file in system32,
I just want to simply use the KIX logon for when the user logons, it will delete the one file, not a folder..
not sure I am getting the syntax correct, and just using simple DEL not doing it..
any suggestions?
thanks

Top
#213835 - 2020-03-01 11:47 PM Re: Delete File if exists [Re: srm11671]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2089
Loc: Tulsa, OK
Post the code that you are trying, and maybe we can spot an issue with it. It may also be a rights issue. Are you sure the user logging in has rights to delete files from the sys32 folder?
Top
#213838 - 2020-03-05 09:02 AM Re: Delete File if exists [Re: ShaneEP]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11590
Loc: CA
What operating system as well? Windows 10 is going to be a bit more stringent on removing a file from that location than say XP

That is not a location you would normally want a regular user to have access to add or delete files.

Perhaps you can remotely delete the file or schedule it for removal on reboot

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (LayneSA) and 49 anonymous users online.
Newest Members
LayneSA, Mavack, xiripot, tspirtle, Safio
17719 Registered Users

Generated in 0.03 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org