Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deleting a file named 'nul'

Posted on 2004-08-23
2
Medium Priority
?
777 Views
Last Modified: 2010-05-18
Here is the problem, a script I have written output its errors to 'nul'
 ie. ls > nul
This is pdksh with a cygwin base for unix commands.
Where the big problem exists is that the script creates a file in the running dir called 'nul'. Windows can not have a file named nul nor can you delete a 'nul' file.... pdksh, bask, csh, dos, windows xp, winpe, all cannot delete the file. I have even tried using rar and other comprestion programs to add the file to an archive and delete the file after making archive, and yet again, the file is still there.
Using cat I can see the contents of the file, but so far that is the only command that can see the file, noptead and all windows based programs error on 'nul' files.
If anyone has a way to delete this file that would be great.
0
Comment
Question by:remyservices
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 400 total points
ID: 11870316
Check out http://support.microsoft.com/default.aspx?scid=kb;en-us;315226 ("How to Remove Files with Reserved Names in Windows XP")
0
 

Author Comment

by:remyservices
ID: 11874376
Thanks, that got it. Been looking for something like that page for some time, thanks alot.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question