Leopardfist
Member
- Joined
- Nov 25, 2014
- Messages
- 14
- Programming Experience
- Beginner
I would like the rename method (only method I have so far) to ONLY be able to be used for path.profile property. Is this possible?
C#:
class paths
{
public string profile { get; set; }
public string profileV2 { get; set; }
public string profileOld { get; set; }
public string citrixTemp { get; set; }
public string profileUnity { get; set; }
public string cookies { get; set; }
public string citrix { get; set; }
public string icaClient { get; set; }
public string sun { get; set; }
public string microsoft { get; set; }
public string appData { get; set; }
public string systemProfile { get; set; }
public string users { get; set; }
public string profiles { get; set; }
static bool reName(paths path)
{
Directory.SetCurrentDirectory(path.profiles);
if (Directory.Exists(path.profileOld))
{
Directory.Delete(path.profileOld);
}
Directory.Move(path.profile, path.profileOld);
return true;
}