|
Vancouver wrote: 1. the idiots of XP developers decided, that I *have to* format NTFS every disk, which is over 32GB
If you were thinking of using DOS on it, then yes, you have to abide by that limit.
Vancouver wrote: 2. I can not copy a hard disk without losing either the full names, or lots of files.
Shouldn't happen on an NTFS volume. DOS, or a FAT volume, on the other hand, WILL lose the long file names.
Vancouver wrote: What is the "standard" procedure when migrating to another hard disk?
There really isn't a "standard" process for this. But, a great utility to do this is PowerQuest's DriveImage (which I don't think exists anymore), or Norton's Ghost. It'll copy everything from one drive to another, while correcting for new partition sizes and stuff.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the idea. Apparently DriveImage is still around; however it costs more than an XP full license (and Norton Ghost costs even more).
Btw, XP's enforcement of NTFS has nothing to do with DOS.
Disk Management simply does not create a partition/logical drive with FAT32 larger than 32GB (even though you can use a much larger FAT32 disk with XP - if it has been created by Win98).
|
|
|
|
|
Try to use Partition Magic.
It was from PowerQuest, but now it is Symatrec.
Partition Magic allaws to convert from NTFS to FAT32.
You will not lose Long Name. Only a DOS cann't use Long Names. But in Win95 OSR2 or higher you could see Long names. (Win95 OSR2 has a FAT32 support, Only WIN95 has only FAT16 aka FAT support). You can Split, Merge, Resize, Convert, Split, Move, Copy, Delete or backup entire partition.
|
|
|
|
|
did any one know why the windows prevent and give and error when you rename some folder or file with "con"????
Militiaware
Faris Madi
|
|
|
|
|
This has been covered before.
CON is a device name that represents the CONSOLE stream. You can't use CON, LPT1, LPT2, LPT3, COM1, COM2, COM3, PRN, ..., and others.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello All,
Not to toot my own horn...well, OK...to toot my own horn
You may recall my step-by-step DCOM tutorial for VC6, which I posted at
http://www.codeproject.com/com/HelloTutorial1.asp[^]
The tutorial isn't meant to reveal the underlying theory and gory detail of DCOM itself, just like the Scribble tutorial wasn't exactly meant to tour every nook and cranny of MFC. However, the tutorial shows each step to take to build a very simple DCOM server and client.
People have been asking me to update the tutorial for VS.NET. And, at last, the new tutorial series is in the midst of being written. Check it out at
Step 1: http://www.codeproject.com/useritems/HelloTutorial1NET.asp[^]
The tutorial is written in several "Steps" -- the main parts of the process. Step 1 is linked above, and each Step contains links to every other step.
Do me a favor, and use the rating at the bottom of each step to score that Step, and post to the Steps' message boards with your questions, and also suggestions on how to make a certain Step better etc. I welcome any and all input, and both positive kudos and constructive feedback together are great. Thanks!
Sincerely Yours,
Brian Hart
Department of Physics and Astronomy
University of California, Irvine
-- modified at 4:30 Saturday 31st December, 2005
|
|
|
|
|
Hi there,
I really can't stand the default Windows file dialog and I'd like to replace it by my own one. I'd like to know if it is possible (did somebody try it yet?) and in which direction should I go to start (system hooks? DLL injection/replacement?). I didn't find any help on the Internet, only some documentation on how to customize it (even Google doesn't know!! ).
Big thanks in advance and happy new year to all!
B.MARTIN
|
|
|
|
|
You didn't find anything useful because nobody ever does it.
You actually have to replace the .DLL that supplies the dialog box with your own. I think it's COMDLG32.DLL. The File Dialog is a variant of a Common Dialog found in that .DLL.
If you really want to radically alter the File Dialog, you'll have to re-write the Common Dialog and the File Dialog that is built on top of it. You'll have to dig up all the CLSID's for the objects and methods and what-not that .DLL exposes and replicate the functionality in your own .DLL. You'll also need to update all the Registry pointers for all the CLSID's that you implement in your own code to point to your .DLL too. Since you'll have to work and play nice with the rest of the original .DLL, you'll have to make sure your code is doing EXACTLY what the original objects and method did in the original .DLL.
BTW: I would also NOT recommend doing this in a managed language, since those dialogs are used system-wide, you'll be injecting the full weight of the .NET Framework into just about every user process running on the system, including Explorer, IE, user applications, ..., you get the idea.
Oh! You'll have to also handle the interaction with the various versions of the original .DLL too! Not every Common Dialog is the same between Windows versions and Service Packs.
Sound like fun?
Now you know why noone ever does this, but it is possible to do.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok you just broke my joy here (there are the ChooseColor, ChooseFont, FindText, OpenFile, SaveFile, PrintDialog and ReplaceText dialogs in COMDLG32.DLL... to much work!).
But if I remember correctly, a few years ago I saw a Corel application (can't remember which one) which added a right panel to the common file dialog. So I guess that hooking some system events and playing with handles should permit to do something nice without rewritting a complete DLL.
Thanks for your reply.
|
|
|
|
|
That depends on how much you want to modify the dialog. It is possible, using hooks into the dialog, to modify the look and some functionality of the dialog.
For an application specific look, you can look into this[^]. Or, for a .NET perspective, this[^].
But, again, you don't want to do this system-wide in managed code. A huge memory footprint comes with the .NET Framework. A bit too steep for me just for a dialog. On top of that, I think you'll also run into issues if you customized a system-wide dialog box using one version of the .NET Framework, then open a dialog in an application using another version of the .NET Framework. Having two .NET Framework Runtimes in the same process gets ugly.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ok thanks a lot for your replies. I'm gonna check your links and make some experiments. I'll avoid the .NET framework and do this in C++ or maybe Delphi. If I get something interesting I'll post an article here. Thanks.
|
|
|
|
|
The biggest reason not to do this, other than within an application:
You will piss off your users.
The common dialogs are intended to be just that: common. Users expect to see them when they use 'File Open', 'Save', etc. commands. An application can customize them if necessary, for some application-specific behavior.
Globally replacing them is A Bad Idea.
Software Zen: delete this;
|
|
|
|
|
It's for my personal use. I like tweaking my system and I can tell you a lot tweaking-fan people are asking/waiting for such a possibility (replacing the common file dialog which is not very flexible and poor in functionnalities).
Anyway, you know sometime it's better to try new things
|
|
|
|
|
I have a HardDisk with drive letter D:\. I know how to set File sharing over LAN. There is a problem, that in some newly created folders or file, prevents any accsess to that file. I Had cross-linked connection and there were no problems. I have also disabled Windows Firewall, because my router has a firewall integrated. How can i set the system to automatcly allow read only connection (I also allow file to be copying from the system)
ps: I have windows XP SP2
|
|
|
|
|
Saksida Bojan wrote: I know how to set File sharing over LAN
NTFS file system integrate local security and network security over the network. My first question is: did you configure any permission in the local security tab?
I used to share a file over the network too in my home LAN. And I use the normal configuration. Just give Everyone group in sharing tab to full control and give the permission to Everyone group in security tab to Read, Read and Execute and List folder content permission.
Saksida Bojan wrote: There is a problem, that in some newly created folders or file, prevents any accsess to that file.
This problem with came from unproper to configure in your access control list. Try to go to the security tab and click on Advance button. In the permission tab select an appropriate user and click on Edit button and try to configure on the Apply onto combobox. Check this point again and let me know whether it is working or not.
Good luck
|
|
|
|
|
Roath Kanel wrote: My first question is: did you configure any permission in the local security tab?
Yes.
I have found a diffrent solution. I have add group "Everyone" in security tab on files that prevent accsess. It seems that by default, these files didn't have Everyone group in security. Some new files in sharing enabled folder, have by default "Everyone" group, some does not. Haw can this happend??
|
|
|
|
|
Try to test it with another folder.
1. First try to navigate to the root system drive.
2. Create a new folder.
3. On the Share tab of the folder property dialog box, give to give the permission to Everyone group with full control behavior. Then return to the security tab and just add an Everyone group with the following option:
- Read.
- Read and Execute.
- List folder content.
Then try to mapped to this share folder again whether it is working or not.
|
|
|
|
|
When i tried again to create a new folder and file, it worked propetly. (This is after ReInstall Of WinXP). But a before the reinstall, i had simple file sharing setting (not advance). After reinstall i looked for permision on that folder, whitch prevented any accsess by LAN. And i found, the permision wasn't inherit from parent(but others where inherit from parent), and a Group "Everyone" wan't there at all. Can you please tell me how can this happen?
|
|
|
|
|
Did you turn on file sharing option?
|
|
|
|
|
Roath Kanel wrote: Did you turn on file sharing option?
Of course i have turned on this option. Some files on shared drive was rejected due to permision?
|
|
|
|
|
Hello,
I’ve been trying from my local computer to access to another’s Machine WMI.
In my machine I have windows XP installed, but the other machine has windows 2000 installed.
Till now, I’ve been able to access the WMI on the machine with the windows 2000, using several classes (Win32_LogicalDisk; Win32_Service and Win32_Process)
Now I’m trying to get information about terminal sessions on the computer (Name of the machine that is connecting...etc.) with the windows 2000 accessing its WMI from my computer. However this doesn’t seem to be working, I get a 0x80041010 error in line 18 column 1 (see code below). I was able to see that this error is: “Specified class is invalid.”. So I guess the problem is that the WIN32_ServerSession doesn’t exist in the machine with the windows 2000.
Using wbemtest.exe, I realized that the class WIN32_ServerSession doesn’t exist in the machine with windows 2000. However the required files (cimwin32.dll, cimwin32.mfl and cimwin32.mof) exist in the directory \WINDOWS\system32\wbem. How can I add this class to the WMI? Do you think this might be the problem?
I’m a little inexperienced in WMI, so I’m not quite sure to what’s the reason of the problem. Can you please aid getting this to work?
Best Regards,
Nuno Pedro
strComputer = "IP_Windows 2000"
strUser="User"
strPassword="Pass"
strDomain="Domain"
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set wbemServices = objSWbemLocator.ConnectServer(strComputer,"root\CIMV2",strUser,strPassword, _
"MS_409","NTLMDomain:" + strDomain)
'for local WMI access
'Set wbemServices = GetObject("winmgmts:\\" & strComputer)
'Set wbemObjectSet = wbemServices.execquery("Select * from Win32_Session")
Set wbemObjectSet = wbemServices.execquery("Select * from Win32_ServerSession")
For Each wbemObject In wbemObjectSet
Wscript.Echo "ActiveTime: " & objItem.ActiveTime
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "ClientType: " & objItem.ClientType
Wscript.Echo "ComputerName: " & objItem.ComputerName
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "IdleTime: " & objItem.IdleTime
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "ResourcesOpened: " & objItem.ResourcesOpened
Wscript.Echo "SessionType: " & objItem.SessionType
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "TransportName: " & objItem.TransportName
Wscript.Echo "UserName: " & objItem.UserName
Next
|
|
|
|
|
You can't add the Win32_ServerSession class to the Windows 2000 box. This is because the Win32 API functions required to support that class don't exist in Windows 2000! Server-side, they only exist in Longhorn and Windows 2003.
In other words, you can't use that class at all on Windows 2000 and you can't force it to work either!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Tks for the help but I've read that page too... (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_serversession.asp)
However what I would really like to know is how you extend/Add that class to WMI namespace. Is there anyway to do this?
|
|
|
|
|
One more time... YOU CAN'T!!!!!
The Win32 API functions, required to make that WMI class actually work on your server, doesn't exist in Windows 2000 and CANNOT BE ADDED TO IT TO MAKE IT WORK!
WMI classes are WRAPPERS for the operating systems API functions, drivers, collections, drives, ... If the API functions don't exist, the WMI classes that wrap them won't work either.
That's why, at the bottom of that page, it says Longhorn and Windows 2003 and above ONLY.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi there,
I had been for over 3 days trying to solve this problem and I have no clue of what's wrong.
I'm trying to create a Dynamic DNS service using only one DNS Server (dns.firmaware.com), but created a second NS record (dns2.firmaware.com) with the same IP address.
First of all I've created a small app in VB .net that updates (using WMI) Microsoft DNS Server whenever an IP change was reported.
It creates different zones for each sub-domain and adds NS records, updates SOA record to change the TTL and MinimumTTL and finally adds/updates the A record.
I know that zone creation/update is working fine because I tested my VB .net several times and checked that Microsoft DNS entries were created/updated.
After checking all that I created a record like “test.gimmeall.com” and resolved it from my home PC. Using “ipconfig /displaydns” I checked that “test.gimmeall.com” had the following values:
localhost
----------------------------------------
Record data . . . . . : test.gimmeall.com
Record type . . . . . : 1
TTL . . . . . . . . . . . : 60
Data length. . . : 4
Section. . . . . . . . . . : Answer
A record (host) . . : 213.13.100.111
So, TTL was fine, if I changed test.gimmeall.com’s A record, after 60 seconds it would be updated, BUT that’s not happening because, after my update, when I ping the same host again it returns the same IP address and when I type “ipconfig /displaydns” it returns the following result:
----------------------------------------
Record data . . . . . : test.gimmeall.com
Record type . . . . . : 1
TTL . . . . . . . . . . . : 85823
Data length. . . : 4
Section. . . . . . . . . . : Answer
A record (host) . . : 213.13.100.111
It looks like that ISP or something else is caching “test.gimmeall.com” with invalid values, but it’s not an ISP problem because tried from different ISP companies and always had the same result.
Can you help me please?
I would be very thankful.
Regards,
Filipe Freire
|
|
|
|
|