|
|
|||||||
Hello all For some reason, a directory named %WinDir% has appeared on all of my client machines with a blank text file inside it. Obviously I am unable to delete this directory using the Del C:\%WinDir% command but how would I accomplish this? Thanks in advance |
||||||||
|
|
|||||||
Try replacing the '%' sign with it's ASCII code like code:Alternatively, temporarily point the environment variable %WINDIR% to the real folder C:\%WINDIR%, delete the folder and the repoint %WINDIR% to the correct Windows directory.if exist('c:\'+chr(37)+'WINDIR'+chr(37)) However, the question is, why has the folder been created in the first place? |
||||||||
|
|
|||||||
At a DOS prompt or batch file: code:Use a similar syntax in KiXtart - using "%%" cancels the special meaning of "%".DEL %%WINDIR%%\blankfile.txt |
||||||||
|
|
|||||||
Hello Thanks for the replies, however, none of the above solutions work. Any more suggestions? Thanks in advance Kevin |
||||||||
|
|
|||||||
Go to one of the affected computers and check the permissions. Then try to manually delete the folder through the Windows Explorer. Then try to delete such a folder form the command line. |
||||||||
|
|
|||||||
Hello All of the machines with this directory are Windows '98SE. I can delete the directory if I right click and select delete. Thanks in advance Kevin |
||||||||
|
|
|||||||
Is this Windows NT or Windows 9x? Brian |
||||||||
|
|
|||||||
Hello These are Windows '98SE machines. Thanks in advance Kevin |
||||||||
|
|
|||||||
quote:Eh? Are you sure? What error messages are you getting back when it doesn't work? I've just tried it on a Win95 machine: code:Creates the directory, andmd c:\%%WINDIR%% code:removes it.rd c:\%%WINDIR%% You will need to remove the file from the directory before attempting to delete the directory itself, but other than that it should work. [ 12. November 2002, 16:31: Message edited by: Richard Howarth ] |
||||||||
|
|
|||||||
Hello I have just tried it again and that worked, thanks. Bye for now Kevin |
||||||||
|
|
|||||||
Maybe attributes on file or folder? Try DelTree. |