|
I think your approach is a Bad Thing(tm).
You totally neglect the fact that parition types can be different (FAT32, NTFS). You also neglect the fact that different partition types have a different formatted format. Also neglected is the need to update the FAT for a FAT partition if you are adding files. You'd still need to update the FAT even if they are both FAT to begin with. See at the beginning of each partition there is a File Allocation Table (FAT). Turning two consecutive partitions to the same requires that 1) partition info is changed, 2) the new block of the grown parition needs to be formatted and linked up to the existing format of the 1st partition, 3) then the files and data need to be moved over and the FAT updated to reflect the addition of new files. Now, simular stuff happens on the 2nd partition. The FAT has to be moved to the new beginning of the parition. Any files occuping that segment of disk need to be moved (if any). As a result, that FAT has to then be updated. If your free space on your first parition is > used space on 2nd parition, then you can do this operation once. Otherwize, you'll have to repeat it and use the copy an amount of data over equal to the amount of free space on your 2nd parition.
Steps:
1) Defrag both paritions (not needed but recommended, your software might do this automatically)
2) Shrink 2nd partition (remove free space)
3) Grow 1st parition (add free space)
4) Copy Data
5) Go to 2 until all files are moved over and partition 2 has size of 0, or is deleted.
If you want a free product rather than paying for one, you can use FIPS 2.0 (Used by the Linux community) but that's not GUI based. You'll probably learn something though by using it.
|
|
|
|
|
I just heard there's a limitation under Windows 98 about the number of
ComboBox that an application can create. I can't believe it!
Did anyone of you heard about this. I searched the MS Knowledge Base but
I didn't find anything yet.
-- God bless the World
|
|
|
|
|
I don't know about any specific limitation about comboboxes. There is a fixed limitation on GDI Resources (64 kB) and User Resources (also 64 kB). Exceed this, and you will have a crash.
Finding information on this is hard, but take a look at this under "Insufficient Windows System Resources".
/moliate
|
|
|
|
|
Sorry, that applied to 16-bit Windows. Guess I answered that to quickly.
I'm rather sure that I've read something about Windows 95/98 keeping a 16-bit heap for GDI, though. I'll get back to you if I find out more..
/moliate
|
|
|
|
|
Hello
In Linux I can always give a mailq command to see what mails are left in the queue.
How do I do this in Win 2000's SMTP server [the one that comes with IIS 5]
This is so that I know when I can safely shut down my machine. Sometimes I am not sure whether my mail has fully gone [I use my localhost as smtp]. THus I wait till I am sure the mail has gone before shutting down. This is a bother as I often give a tolerance of 5 minutes before shutting down. Sometimes I am still scared as to whether a mail was not sent.
Anyway even otherwise what if there is a DNS failure because I mistyped the email address. How do I see the logs? I ean is there a log that shows what mails were sent and when and how many bytes/mail etc....
Thanks in advance...
Regards
Nish
Sonork ID 100.9786 voidmain
|
|
|
|
|
I don't remember the exact folder because I don't use my own SMTP anymore, but I do remember there was a folder (something like C:\Inetpub\mailroot\) where the SMTP server dropped emails if they couldn't be delivered. I know this doesn't help much, but it's a start.
Jon Sagara
"After all is said and done, usually more is said than done." -- Unknown
|
|
|
|
|
Thanks JS,
I am home on Win 98. Tomorrow I'll chk out what you said from my office Win 2k machine. I guess that should work.
Thanks once again
Nish
Sonork ID 100.9786 voidmain
|
|
|
|
|
I got error 937 when trying to connect 2 PC to a win2k box with 2 modems and ras. It says because another connection of your type is in use the incoming connection cannot accept your connection request. What is the reason for this? Is this a licensing issue? Do I have to get win2k server? I need to connect 3 pcs simultaneously to one server with 3 modems.
I also Got the following event message on the ras server:
EventID 20073
The following error occurred in the Point to Point Protocol module on port: COM3, UserName: TELEMAML. Because another connection of your type is in use, the incoming connection cannot accept your connection request.
|
|
|
|
|
Here is the answer. It is a licensing issue..
Incoming connections
By creating an incoming connection, a computer running Windows 2000 Professional or stand-alone Windows 2000 Server can act as a remote access server. You can configure an incoming connection to accept the following connection types: dial-up (modem, ISDN, X.25), virtual private network (VPN) (PPTP, L2TP), or direct (serial, infrared). On a computer running Windows 2000 Professional, an incoming connection can accept up to three incoming calls, up to one of each of these types. On a computer running Windows 2000 Server, the number of inbound calls is only limited by the computer and its hardware configuration.
|
|
|
|
|
What's a simple, reliable way to determine whether a program file (.EXE or .DLL, etc.) is in use under any version of Windows? For example, attempting to delete a program file that's currently running will usually result in Access Denied. We'd like to test this condition before we start deleting files.
The following article gives code to enumerate all processes and to display all the module filenames used by the processes. (Remember that a process may be using multiple DLLs.)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/psapi_9cc3.asp
You can find the article in the MSDN library by searching for the title "Enumerating All Modules For a Process".
Some possible limitations with this approach:
1) Is it supported in all versions of Windows since 95?
2) When run in administrator mode (in WinNT, Win2000, WinXP Pro) will it also report files used by other logged-in users?
-- Phil Davidson
phil.davidson@broderbund.com
phil@phildavidson.com
|
|
|
|
|
PSAPI is only available under NT. If you would like to enumerate processes and modules under Win9x, I suggest using ToolHelp:s process-snapshot (tlhelp32.h). It seems rater reliable, but I don´t know how it will work with other logged-in users (probably won´t).
|
|
|
|
|
how about trying to open the file in an exclusive sharing mode?
|
|
|
|
|
If I run the same executable in two different ways:
1) Run the exe twice from the same directory
2) Copy the exe to two different directories and run it from each directory
Question 1: Will method (1) uses less physical memory than method (2)?
Question 2: Is the answer to question 1 the same for both Windows and Unix?
|
|
|
|
|
Question 1: Will method (1) uses less physical memory than method (2)?
both methods will use the same amount of memory
Question 2: Is the answer to question 1 the same for both Windows and Unix?
yes. on both windows and unix
but the second time, it will be faster cause of paging.
|
|
|
|
|
>Question 1: Will method (1) uses less physical memory than method (2)?
>both methods will use the same amount of memory
I´m not so sure. This is what I learned about Win2000 (you might be right for Win9x, Nish, I only know about NT):
When calling CreateProcess the system locates the .exe, creates a new process kernel object, and reserves a region of adressspace to contain the file. It then notes that the physical storage backing the region is contained on disk, instead of paging file. When the execution starts paging, buffering and caching is performed by the system. This means that both codepages and datapages are shared by all instances of a running application. When an app is changing its data (writing to the memory-mapped file), the system catches the attempt, allocates a new memoryblock, copies the data, and make changes for this process-unique page.
Process 1
Code1
Code2
Data1
Process 2
Code1
Code2
Data1
Memory
Code1
Code2
Data1
Data1.1 (Changed by process 1)
Conclusion: More memory is used if running two (identical) .exes from different locations on disk, as the system must reserve memory for each file.
Hope this will help.
|
|
|
|
|
Thanks for the info.
Nish
Sonork ID 100.9786 voidmain
|
|
|
|
|
Hey, I see you´ve got your login back! Great!
|
|
|
|
|
Thanks Moliate
Yup, I got it back
Sonork ID 100.9786 voidmain
|
|
|
|
|
I have installed Red Hat Linux 6.1 on my PC, but I am facing many difficulties in installing my internal fax modem for the connectivity with the internet.
If any-friend would help me, I will be thankful for that.;P
Hayat Muhammad
|
|
|
|
|
First you need to check if you have a real modem, or a sound codec with a phone line interface (a.k.a "Winmodem" or "software modem"). If you are having difficulties it's likely you have a Winmodem. Some of those can be made to work under Linux, see http://www.linmodems.org/
|
|
|
|
|
hi
how to create (start menu) shortcut to explorer what will open it but not at my-documents as it does now but at (expanded) home, if possible at c: selected
thanks for reply
t!
|
|
|
|
|
explorer.exe c:\ will open a window at the C Drive root
Michael
|
|
|
|
|
but (me) not into "explorer" style (no left tree)
t!
|
|
|
|
|
I don't know if this helps, but when you look at the shortcuts for explorer, you find a command line which is something like: "C:\WINDOWS\EXPLORER.EXE /n,/e,C:\" (this opens expanded C) so I suppose that by replacing c:\ by your path you can get it to go where you want...
Hope this helps
TWD
P.S: the /e, opens the exploration part of the explorer, but I haven't a clue what the /n, does.
TWD
TWD
|
|
|
|
|
/e! wonderfoool!
(does anybody have idea how to say "open at my-computer" or "at network"? context menu at desktop opens something different than what will be run)
t!
|
|
|
|