I wish I had thought of this a long time ago. I have the need to quickly go to the command prompt in a particular folder to do some DOS tasks.
The following is a little program that can be placed in a particular folder and run from an icon on the desktop. Maybe this has been done before or is too elementary, but here you go...
If you want all of the files you can go to http://www.garypeek.com/basic/, otherwise you can remove the reference to the resource file if you just want to use the source.
The following is a little program that can be placed in a particular folder and run from an icon on the desktop. Maybe this has been done before or is too elementary, but here you go...
If you want all of the files you can go to http://www.garypeek.com/basic/, otherwise you can remove the reference to the resource file if you just want to use the source.
Code:
#COMPILE EXE #INCLUDE "WIN32API.INC" #RESOURCE "SHELHERE.PBR" FUNCTION WINMAIN (BYVAL CurInst AS LONG, _ BYVAL PrvInst AS LONG, _ BYVAL CmdLine AS ASCIIZ PTR, _ BYVAL CmdShow AS LONG) EXPORT AS LONG LOCAL hShell AS LONG hShell = SHELL(ENVIRON$("COMSPEC"), 1) END FUNCTION
Comment