Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
locating windows default drive
Name: secrets Date: October 14, 2004 at 05:27:53 Pacific OS: WINDOWS CPU/Ram: 1.7
Comment:
how to get the default drive and dir of windows in vb and vc?
Name: BlueRaja Date: October 14, 2004 at 13:34:01 Pacific
Reply:
Easiest way would be to call the system: system("echo %WINDIR%");
AKhalifman@hotmail.com
0
Response Number 2
Name: secrets Date: October 14, 2004 at 18:43:29 Pacific
Reply:
any other solution?
0
Response Number 3
Name: waterdog Date: October 15, 2004 at 07:41:31 Pacific
Reply:
The functions GetWindowsDirectory, GetSystemDirectory and GetCurrentDirectory when sent a pointer to a buffer and the size of the buffer can be used to get the directory's indicated in the function names. The drive letter is the first character in the buffer string.
When using GetCurrentDirectory the pointer to a buffer is the last parameter while it is the first parameter in the other two.
They all return the number of characters written to the buffer.
Summary: The main thing you need to be sure of is if your motherboard/BIOS supports loading from USB. Then you need to make sure your USB drive is able to be booted from. Then you need to make sure your USB is...
Summary: Thanks for the advice with systeminfo.exe - I now have a local copy stored on my USB key (where the script is being executed). I also figured that if I 'may' be forced to use this local copy then rath...
Summary: To copy files from CD drive to hard disk just use the usual copy command; you may need to remove the read-only attribute after copying by the attrib -R statement. About the default drive there is no s...