Click here to Skip to main content
16,004,991 members
Home / Discussions / System Admin
   

System Admin

 
Questioncan any gurus' help me with my lost password! Pin
melmal6921-Jun-07 23:00
melmal6921-Jun-07 23:00 
AnswerRe: can any gurus' help me with my lost password! Pin
Michael Dunn23-Jun-07 9:17
sitebuilderMichael Dunn23-Jun-07 9:17 
AnswerRe: can any gurus' help me with my lost password! Pin
Jeffrey Walton5-Jul-07 3:34
Jeffrey Walton5-Jul-07 3:34 
QuestionInsight into making some Vista Applications work Pin
Don Zocchi21-Jun-07 22:30
Don Zocchi21-Jun-07 22:30 
AnswerRe: Insight into making some Vista Applications work Pin
akseli14-Jul-07 3:52
akseli14-Jul-07 3:52 
QuestionVista End Task button almost never works. Pin
Don Zocchi21-Jun-07 22:28
Don Zocchi21-Jun-07 22:28 
AnswerRe: Vista End Task button almost never works. Pin
Michael Dunn23-Jun-07 9:19
sitebuilderMichael Dunn23-Jun-07 9:19 
QuestionUSB Removable Drive Detection in Win CE 5.0 Pin
cyberanee21-Jun-07 21:06
cyberanee21-Jun-07 21:06 
I have an data-acquisition application in which data-logging is performed constantly and data is stored in a CF Card, which acts as the primary data-storage device for the system.

The Windows CE image that i have loaded has support for automatic detection of USB mass storage devices.

The User can retrive the data from the system (CF Card) thru USB Drive.

There is no screen or console , it is an industrial Controller.

The data acquistion goes on constantly , and the application periodically polls the USB slot to see if the user has inserted any USB Drive in it.

For this, i use the standard CreateFile() function in order to detect if the user has inserted USB Pen Drive into USB slot or not. I get the handle to the device using CreateFile(), is user has inserted it. If he has, then all reqd. data from the CF Card is copied to the USB drive.

if ((hFile=CreateFile(_TEXT"DSK2:",GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL))!=INVALID_HANDLE_VALUE)
{Do further processing}

NOTE: Here DSK2: is the disk number of the Pen Drive

Whenever the user insertes the USB Drive, the OS detects this, and CreateFile function therefore returns successfully with the USB dive handle. Thus, USB Drive is detected.

Now, the problem is that sometimes, although the Pen Drive is inserted, it is not detected by the OS, whearas at other times it is. That is, in the Windows Explorer, where I can see the CF Card mounted as "Hard Disk" and USB Pen Drive as "Hard Disk2", sometimes, this "Hard Disk2" is not seen. It leads me to the conclusion that the USB Dive is not mounted by the Windows Device Manager. Even if i remove the Pen Drive and re-insert it, it will not be detected hence-forth , once it is not detected. I don't know how to make the OS detect it then , the only way i know is rebooting the system. (Which is definetely not the solution!!)

What can possibly be causing this irregular behavior?

At such times, I cannot obtain a handle to the device using CreateFile. Is there any alternate way to obtain access to the USB device, rather than relying on Windows OS, and the Device Manager??

I have also completely checked the hardware, to verify that there is no problem on hardware side, no loose connections etc. Another important point is that the LED on the USB Pen Drive always glows when I insert the Pen Drive, even when it is not detected by Windows CE.

Regards,
CR
QuestionHow to retreive data lost by moving data between drives?? Pin
Kiran Satish21-Jun-07 5:34
Kiran Satish21-Jun-07 5:34 
AnswerRe: How to retreive data lost by moving data between drives?? Pin
Dave Kreskowiak21-Jun-07 7:44
mveDave Kreskowiak21-Jun-07 7:44 
QuestionHow do I kill an 'access denied' process? Pin
sharma sanjeev19-Jun-07 22:48
sharma sanjeev19-Jun-07 22:48 
AnswerRe: How do I kill an 'access denied' process? Pin
vimal_yet20-Jun-07 0:34
vimal_yet20-Jun-07 0:34 
GeneralRe: How do I kill an 'access denied' process? Pin
sharma sanjeev20-Jun-07 2:57
sharma sanjeev20-Jun-07 2:57 
AnswerRe: How do I kill an 'access denied' process? Pin
Craster20-Jun-07 3:52
Craster20-Jun-07 3:52 
AnswerRe: How do I kill an 'access denied' process? Pin
Dave Kreskowiak20-Jun-07 5:13
mveDave Kreskowiak20-Jun-07 5:13 
GeneralRe: How do I kill an 'access denied' process? Pin
quacks_a_lot28-Jun-07 16:44
quacks_a_lot28-Jun-07 16:44 
AnswerRe: How do I kill an 'access denied' process? Pin
Jeffrey Walton5-Jul-07 3:37
Jeffrey Walton5-Jul-07 3:37 
QuestionWhere is my Cookies Folder? Pin
chand1019-Jun-07 17:55
chand1019-Jun-07 17:55 
AnswerRe: Where is my Cookies Folder? Pin
WoutL19-Jun-07 20:40
WoutL19-Jun-07 20:40 
GeneralRe: Where is my Cookies Folder? Pin
chand1019-Jun-07 21:36
chand1019-Jun-07 21:36 
QuestionInaccessible folder Pin
Kevnar19-Jun-07 8:37
Kevnar19-Jun-07 8:37 
AnswerRe: Inaccessible folder Pin
MatrixCoder19-Jun-07 14:11
MatrixCoder19-Jun-07 14:11 
GeneralRe: Inaccessible folder Pin
Craster20-Jun-07 0:20
Craster20-Jun-07 0:20 
AnswerRe: Inaccessible folder Pin
Craster20-Jun-07 0:19
Craster20-Jun-07 0:19 
GeneralRe: Inaccessible folder [modified] Pin
Pawel Krakowiak17-Dec-07 6:10
Pawel Krakowiak17-Dec-07 6:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.