中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-04 19:35
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Show Quick Launch from the command line
Printable Version  959 / 0
Floor1 pighead123 Posted 2007-05-29 05:34
初级用户 Posts 23 Credits 42
A problem I ran into today, and I saw others had run into it too

http://www.cn-dos.net/forum/viewthread.php?tid=28997&fpage=1&highlight=%E5%BF%AB%E9%80%9F%E5%90%AF%E5%8A%A8

Hehe

I searched a bit, and there isn't much information on Baidu or Google

There is a way to modify the registry, sigh, not good

I got lucky and found a tool, don't know who wrote it

I'll offer it up to everyone then, hehe :)

Usage

C:\>toggleql 1 show Quick Launch

C:\>toggleql 0 do not show Quick Launch

Download: http://allyesno.gbaopan.com/files/b9dfe9e6e7de445f98a78c7c18774e7f.gbp



// toggleql.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <windows.h>
#define WMTRAY_TOGGLEQL (WM_USER + 237)

VOID PrintUsage()
{
wprintf(L"\nToggleQL 1 | 0\n\n");
}

#define UI_CHECKERR(b) \
if (!(b)) \
{ \
PrintUsage(); \
return; \
}

void wmain(int argc, _TCHAR* argv)
{
ULONG NewState;
UI_CHECKERR(argc==2)
UI_CHECKERR(sscanf(argv,"%lu",&NewState))

//Make sure that it's either 1 or 0.
NewState = (NewState) ? 1 : 0;
SendMessage(FindWindow(L"Shell_TrayWnd", NULL),WMTRAY_TOGGLEQL,(WPARAM)0,(LPARAM)NewState);

}



[ Last edited by pighead123 on 2007-5-29 at 05:41 AM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023