The screenshot you posted showed it being run from explorer.  Running it from a command prompt after you cd to the directory ensures the working directory is correct, where running it from a batch file wouldn't.  It also ensures that any output from the program would remain in the window for you to copy/paste. 
 
I would delete the shared and logs directories, empty the trash if you use the recycle bin, then reboot.  After that, from a command prompt navigate to the server directory, create both the shared and logs directories using mkdir, then run shared_memory again.  There should be output both in the command prompt window as well as a log file in the logs directory. 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 |