(Fresh Scripter)
2020-02-28 07:54 PM
Delete File if exists

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?

(MM club member)
2020-03-01 11:47 PM
Re: Delete File if exists

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?

(KiX Master)
2020-03-05 09:02 AM
Re: Delete File if exists

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