Skip to main content
deleted 1 character in body
Source Link
Marco
  • 632
  • 10
  • 19

If you need to perform in Microsoft Windows the equivalent of a symlink to /dev/null in Linux you would open andan administrator's cmd and type:

For files:

mklink c:\path\to\file.ext NUL: 

Or, for directories:

mklink /D c:\path\to\dir NUL: 

This will keep the file/direcotry always at 0 byte, and still return success to every write attempt.

If you need to perform in Microsoft Windows the equivalent of a symlink to /dev/null in Linux you would open and administrator's cmd and type:

For files:

mklink c:\path\to\file.ext NUL: 

Or, for directories:

mklink /D c:\path\to\dir NUL: 

This will keep the file/direcotry always at 0 byte, and still return success to every write attempt.

If you need to perform in Microsoft Windows the equivalent of a symlink to /dev/null in Linux you would open an administrator's cmd and type:

For files:

mklink c:\path\to\file.ext NUL: 

Or, for directories:

mklink /D c:\path\to\dir NUL: 

This will keep the file/direcotry always at 0 byte, and still return success to every write attempt.

added 2 characters in body
Source Link
Marco
  • 632
  • 10
  • 19

If you need to perform in Microsoft Windows the equivalent of a symlink to /dev/null in Linux you would open and administrator's cmd and type:

For files:

mklink c:\path\to\file.ext nulNUL: 

Or, for directories:

mklink /D c:\path\to\dir nulNUL: 

This will keep the file/direcotry always at 0 byte, and still return success to every write attempt.

If you need to perform in Microsoft Windows the equivalent of a symlink to /dev/null in Linux you would open and administrator's cmd and type:

For files:

mklink c:\path\to\file.ext nul 

Or, for directories:

mklink /D c:\path\to\dir nul 

This will keep the file/direcotry always at 0 byte, and still return success to every write attempt.

If you need to perform in Microsoft Windows the equivalent of a symlink to /dev/null in Linux you would open and administrator's cmd and type:

For files:

mklink c:\path\to\file.ext NUL: 

Or, for directories:

mklink /D c:\path\to\dir NUL: 

This will keep the file/direcotry always at 0 byte, and still return success to every write attempt.

Post Undeleted by Marco
Post Deleted by Marco
Source Link
Marco
  • 632
  • 10
  • 19

If you need to perform in Microsoft Windows the equivalent of a symlink to /dev/null in Linux you would open and administrator's cmd and type:

For files:

mklink c:\path\to\file.ext nul 

Or, for directories:

mklink /D c:\path\to\dir nul 

This will keep the file/direcotry always at 0 byte, and still return success to every write attempt.