I have a little problem that I can't figure out. I need to
delete files from a computer each time it is booted up. I've
figured out how to delete the files from "8.3" directories with
no problem, and have used the long file name files I've found
in other Power Basic forums questions. I need to delete files
in the client's "C:\Progra~1\Netscape\Users\Somename\Cache".
Where my problem occurs is that not all my clients have the
same "Somename" directory under their Users directory. Some are
"Default" others, well you get the idea. I'm using PB3.5 for
DOS. Is there any way I can pull the unknown directory from
Users and then put that directory in my DIR$ so the files can be
deleted?
Again the following does work if "default" is the directory
between "Users" and "Cache":
Caches$=DIR$("C:\Progra~1\Netscape\Users\DEFAULT\Cache\*.*")
if Caches$ <> "" then Kill Caches$
I just need to know how to find out and replace the "DEFAULT"
directory (or whatever the name of the directory is) in my
program line. Any help will be appreciated.
Tony D'Andrea
------------------
delete files from a computer each time it is booted up. I've
figured out how to delete the files from "8.3" directories with
no problem, and have used the long file name files I've found
in other Power Basic forums questions. I need to delete files
in the client's "C:\Progra~1\Netscape\Users\Somename\Cache".
Where my problem occurs is that not all my clients have the
same "Somename" directory under their Users directory. Some are
"Default" others, well you get the idea. I'm using PB3.5 for
DOS. Is there any way I can pull the unknown directory from
Users and then put that directory in my DIR$ so the files can be
deleted?
Again the following does work if "default" is the directory
between "Users" and "Cache":
Caches$=DIR$("C:\Progra~1\Netscape\Users\DEFAULT\Cache\*.*")
if Caches$ <> "" then Kill Caches$
I just need to know how to find out and replace the "DEFAULT"
directory (or whatever the name of the directory is) in my
program line. Any help will be appreciated.
Tony D'Andrea
------------------
Comment