dll files
-
Easy:
string path = @"D:\Temp\";
string[] files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);
foreach (string file in files)
{
string newPath = file.Substring(0, file.Length - Path.GetExtension(file).Length) + ".exe";
if (file != newPath)
{
File.Move(file, newPath);
}
}Mind you, you'll have to cope with the system files, and such like...
You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)
Thanks, I know *how to* do this. (And I'd prefer the much easier PathRenameExtension[^] instead of the buggy C# code - what happens if you have 1.txt and 1.exe and you rename 1.txt in 1.exe, for example?). I was talking about how dumb a solution would be to rename everything in .dll and .exe. I can't think a single reason to do this except an installer or update tool.
-
Thanks, I know *how to* do this. (And I'd prefer the much easier PathRenameExtension[^] instead of the buggy C# code - what happens if you have 1.txt and 1.exe and you rename 1.txt in 1.exe, for example?). I was talking about how dumb a solution would be to rename everything in .dll and .exe. I can't think a single reason to do this except an installer or update tool.
-
If there's a file called 2g1c.dll I strongly advise you to not try to look at that. Believe me, it's better that way. Things that have been seen cannot be unseen. Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
-
Easy:
string path = @"D:\Temp\";
string[] files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);
foreach (string file in files)
{
string newPath = file.Substring(0, file.Length - Path.GetExtension(file).Length) + ".exe";
if (file != newPath)
{
File.Move(file, newPath);
}
}Mind you, you'll have to cope with the system files, and such like...
You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)
-
If there's a file called 2g1c.dll I strongly advise you to not try to look at that. Believe me, it's better that way. Things that have been seen cannot be unseen. Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
-
2 guys 1 cow ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.
Rage wrote:
2 guys 1 cow ?
Close but no cigar! :rolleyes:
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
-
2 guys 1 cow ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.
-
my boyfriend has put parental locks on our desktop. He is using multiple IP addresses on his laptop as well as multiple wi fi addresses. He has turned all files into dll and exe so they can not be ooened or read. Feeling stupid, but what does all this mean?
Move out. Your life is in danger. When SWAT busts down your door looking for whoever has access to that computer, they will shoot first, and not bother asking questions.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
My advice. Date a human. If he doesn't trust you, he doesn't deserve you. If he is hiding things from you, he doesn't deserve you.
I assume OP's in high school. her boyfriend is probably just hiding his extensive collection of porn. :-D
Regards, Nish
Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com
-
my boyfriend has put parental locks on our desktop. He is using multiple IP addresses on his laptop as well as multiple wi fi addresses. He has turned all files into dll and exe so they can not be ooened or read. Feeling stupid, but what does all this mean?
Sounds like you need to get your own computer, password protect it really well and never let him use it. He does sound like a controlling idiot. And how is it you knew he was using multiple IP addresses and WiFis?
-
I assume OP's in high school. her boyfriend is probably just hiding his extensive collection of porn. :-D
Regards, Nish
Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com
Yes, I'd guess the same
-
Change the boyfriend. And also the parental "solution". How the fuck to change all files into binaries?
I suspect a shell extension so he can just bypass it
-
Try copying some of the (so called) dll or exe files to a new folder and then try renaming them to .jpg, .gif or .png, or possibly .doc, .txt or .zip and see if the file can be opened when renamed with a new extension. And then have a good long talk with him starting with "Why?".
cheers Chris Maunder