using System;
namespace ConsoleApplication1
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine();
// Path do diretório da aplicação
Console.WriteLine("Diretório da aplicação: {0}",
Environment.CurrentDirectory);
// Path do diretório do Sistema Operacional
Console.WriteLine("Diretório do S.O.: {0}",
Environment.GetFolderPath(Environment.SpecialFolder.System));
// Path da àrea de trabalho
Console.WriteLine("Path àrea de trabalho: {0}",
Environment.GetFolderPath(Environment.SpecialFolder.Desktop));
// Path Meus documentos
Console.WriteLine("Path Meus documentos: {0}",
Environment.GetFolderPath(Environment.SpecialFolder.Personal));
// Path Cookies
Console.WriteLine("Path Cookies: {0}",
Environment.GetFolderPath(Environment.SpecialFolder.Cookies));
// Path documentos abertos recentemente
Console.WriteLine("Path doctos recentes: {0}",
Environment.GetFolderPath(Environment.SpecialFolder.Recent));
Console.ReadLine();
}
}
}
C# - Path de diretórios
Procurar neste site . . .
Tempo
Categoria
- .net (22)
- Access (1)
- Ajax (1)
- C# (1)
- Componentes (1)
- Delphi (5)
- Eventos (1)
- Firebird (1)
- Firewall (1)
- Handheld Basic (2)
- hb++ (2)
- Internet Explorer (1)
- Java (2)
- Linux (3)
- Livros (3)
- Microsoft (1)
- Mono (1)
- Navegadores (1)
- NHibernate (2)
- Palm (2)
- PHP (3)
- Por dentro (5)
- Rave (1)
- Redes (1)
- Ruby (6)
- Segurança (1)
- SQL Server (1)
- Tecnologia (2)
- Turbo Delphi (3)
- Utilidade Publica (1)
- Web (2)
- Windows (6)
- Windows Server 2003 (1)
- XML (1)