Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Quick Answer</strong> </p> <ol> <li><p>If you try to move a directory that does not exist, or a create a file in a directory that does not exist, you will get a <code>DirectoryNotFoundException</code>.</p></li> <li><p>If the caller does not have permissions, or you attempt to create a file in a path that is read-only, you will get an <code>UnauthorizedAccessException</code>.</p></li> </ol> <p><strong>Teach Someone To Fish...</strong></p> <p>You can find this information through</p> <p><strong>Documentation</strong> </p> <p>See the <strong>Exceptions</strong> heading for each of the methods you're trying to use.</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/d62kzs03.aspx" rel="nofollow">File.Create</a> </li> <li><a href="http://msdn.microsoft.com/en-us/library/system.io.directory.move.aspx" rel="nofollow">Directory.Move</a> </li> <li><a href="http://www.google.com/search?q=msdn%20directory.move" rel="nofollow">Etc.</a> (replace the query with the method you are interested in)</li> </ul> <p><strong>Experimentation</strong></p> <ol> <li><p>To see what happens when the directory doesn't exist, try to move, create, or modify files in <code>C:\hsdfkl</code> or <code>\\yourserver\hsdfkl</code>. Note: I chose that directory name randomly as it is unlikely to exist; if <code>hsdfkl</code> actually does exist, try <code>hsdfkl1</code>.</p></li> <li><p>To see what happens when it exists but you don't have permissions, since you say you don't have admin privileges, try manipulating <code>C:\</code>.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload