The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: morlok on April 23, 2008, 11:13:13 PM

Title: How access to My Computer\....
Post by: morlok on April 23, 2008, 11:13:13 PM
Hello, when I plug my Sony USB walkman does not appear as a unit. It take the following path:
My Computer\WALKMAN\Storage Media\MUSIC

From windows explorer I can access to the MUSIC folder an copy an paste files. But How can I acces from my own program?.

Thanks.
Title: Re: How access to My Computer\....
Post by: jj2007 on April 23, 2008, 11:59:34 PM
Assemble the snippet and put the exe in your special folder...

include \masm32\include\masm32rt.inc

.data?
buffer db 262 dup (?)

.code
AppName db "This is where I was started:", 0

start:
invoke GetModuleFileName, 0, addr buffer, 260
invoke MessageBox, 0, addr buffer, addr AppName, MB_OK
invoke ExitProcess,eax
end start
Title: Re: How access to My Computer\....
Post by: morlok on April 24, 2008, 07:23:50 AM
good idea, I'll try it.

thanks