Hi, im sorta new to assembly programing... Currently i am using MASM.
I've been trying to make a program open the current working directory so that if I put the program on a disk it would diskplay the contents of the drive that the cd was in.

so far:


invoke GetCurrentDirectory,500,addr cddrive
invoke ShellExecute,hWin,addr open,addr cddrive,NULL,NULL,NULL


doesn't do anything :-D
any advice would be appreciated.
:oops:
Posted on 2004-12-21 03:48:41 by silverflow2120
To open a folder, use either of the following calls: 


ShellExecute(handle, NULL, <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);

or

ShellExecute(handle, "open", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);

To explore a folder, use:

ShellExecute(handle, "explore", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);

To launch the Shell's Find utility for a directory, use:

ShellExecute(handle, "find", <fully_qualified_path_to_folder>, NULL, NULL, 0);

If lpOperation is NULL, the function opens the file specified by lpFile. If lpOperation is "open" or "explore", the function attempts to open or explore the folder.



/siddhartha
Posted on 2004-12-26 23:08:37 by siddhartha