Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Deleting a file named 'nul'

Posted on 2004-08-23
2
Medium Priority
?
772 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

722 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