@ECHO off
TITLE greaterthanme-实现定时关机、注销、重启、锁定等功能。
:start
CLS
COLOR 1f
rem 使用COLOR命令对控制台输出颜色进行更改
MODE con: COLS=41 LINES=18
rem MODE语句为设定窗体的宽和高
set tm1=%time:~0,2%
set tm2=%time:~3,2%
set tm3=%time:~6,2%
ECHO %date% %tm1%点%tm2%分%tm3%秒
ECHO =========================================
ECHO 请选择要进行的操作,然后按回车
ECHO ———————————————
ECHO.
ECHO 1. 定时关机
ECHO 2. 倒计时关机
ECHO 3. 删除定时关机任务
ECHO 4. 查看任务状态
ECHO 5. 刷新当前时间
ECHO 6. 重新启动
ECHO 7. 锁定计算机
ECHO 8. 注销
ECHO 9. 退出
ECHO.
:cho
SET Choice=
SET /P Choice=选择:
rem 设定变量”Choice”为用户输入的字符
IF NOT “%Choice%”==”" SET Choice=%Choice:~0,1%
rem 如果输入大于1位,取第1位,比如输入132,则返回值为1
ECHO.
IF /I “%Choice%”==”1″ GOTO SetHour
IF /I “%Choice%”==”2″ GOTO outtime
IF /I “%Choice%”==”3″ GOTO delAt
IF /I “%Choice%”==”4″ GOTO view
IF /I “%Choice%”==”5″ GOTO start
IF /I “%Choice%”==”6″ GOTO restart
IF /I “%Choice%”==”7″ GOTO lock
IF /I “%Choice%”==”8″ GOTO logoff
IF /I “%Choice%”==”9″ GOTO end
rem 为避免出现返回值为空或含空格而导致程序异常,需在变量外另加双引号
rem 注意,IF语句需要双等于号
rem 如果输入的字符不是以上数字,将返回重新输入
ECHO 选择无效,请重新输入
ECHO.
GOTO cho
:SetHour
CLS
ECHO.
SET ask=
SET /p ask=是否设定为每天执行关机命令(y/n):
IF NOT “%ask%”==”" SET ask=%ask:~0,1%
IF /I “%ask%”==”y” GOTO yes
IF /I “%ask%”==”n” GOTO no
GOTO SetHour
:yes
ECHO 请指定24小时制式时间,格式为 小时:分钟
SET shutdowntime=
SET /p shutdowntime=输入:
at %shutdowntime% /every:M,T,W,Th,F,S,Su tsshutdn 0 /delay:0 /powerdown >nul
rem 设定为每周的星期一至星期日,即为每天
IF NOT errorlevel 1 GOTO ok
rem 如果输入正确,就执行ok段的语句
ECHO %shutdowntime% 不是标准的时间格式,请重新输入
ECHO.
GOTO yes
:no
ECHO 请指定24小时制式时间,格式为 小时:分钟
SET shutdowntime=
SET /p shutdowntime=输入:
at %shutdowntime% tsshutdn 0 /delay:0 /powerdown >nul
IF NOT errorlevel 1 GOTO ok
ECHO %shutdowntime% 不是标准的时间格式,请重新输入
ECHO.
GOTO no k
ECHO.
SET h=%shutdowntime:~1,1%
SET ah=%shutdowntime:~0,1%
SET am=%shutdowntime:~2,2%
SET bh=%shutdowntime:~0,2%
SET bm=%shutdowntime:~3,2%
IF “%h%”==”:” (
SET HM=%ah%时%am%分
) ELSE (
SET HM=%bh%时%bm%分)
rem 如果输入h:mm则HM=h时mm分,否则HM=hh时mm分
IF /I “%ask%”==”y” ECHO 系统将于每天的%HM%关闭
IF /I “%ask%”==”n” ECHO 系统将于%HM%关闭
ECHO 设定完毕! 按任意键继续…
PAUSE >nul
GOTO start uttime
CLS
ECHO.
ECHO 请输入倒计时秒数
ECHO ————————
ECHO (设定后要取消,单击”确定”后按Ctrl+C键两次)
SET timed=
SET /p timed=输入:
tsshutdn %timed% /delay:0 /powerdown >nul
IF not errorlevel 1 GOTO ok
ECHO %timed% 是无效的关机时间,请重新输入
ECHO.
GOTO outtime
:delAt
cls
echo.
at /del /y
echo 定时关机任务已取消,按任意键继续…
pause >nul
GOTO start
:view
MODE con: COLS=85 LINES=18
COLOR 70
ECHO.
at
ECHO 按任意键继续…
PAUSE >nul
GOTO start
:restart
shutdown -r -t 0
:lock
rundll32.exe user32.dll,LockWorkStation
goto start
:logoff
logoff
:end
exit
把以上复制到记事本保存后把后缀.txt改为.bat
1。在eclipse下出现 “Failed to find an AVD compatible with target ‘Android 1.5′. Launch aborted.”。
手册上说需要Create an AVD(Android Virtual Device)。
AVD新建在%HOMEPATH%\.android\avd下。
D:\Dev\Android\Android-1.5\tools>android create avd –target 2 –name myavd
Android 1.5 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Created AVD ‘myavd’ based on Android 1.5
Mary Meeker of Morgan Stanley isn’t just any Internet analyst. She was covering the sector when the brokerage firm was the lead underwriter for Netscape Communications’ initial public offering in 1995, was dubbed the “Queen of the Net” by Barron’s magazine in 1998 and was covering the space in 2004, when Morgan Stanley helped launch the Google IPO. Now a managing director at Morgan Stanley and head of the global technology research team, she has released her latest massively detailed “State of the Internet” report, which she has been putting out periodically since 1995. She presented the report during an event this afternoon at Google, which was streamed live as part of the Events@Google series.
And what does Meeker see in her crystal ball this year? Two overwhelming trends that will affect consumers, the hardware/infrastructure industry and the commercial potential of the web: mobile and social networking. Such a conclusion is hardly earth-shattering news to GigaOM readers, for we have been following these trends over the past year or two, but Meeker puts some pretty large numbers next to those trends, and looks at the shifts that will (or are likely to) take place in related industries such as communications hardware. She also compares where the rest of the developed world is in terms of mobile communications and social networking with Japan. Again, not a radically different approach to the one many tech forecasters take, but Meeker has the weight of some considerable research chops on her side.
The Morgan Stanley analyst says that the world is currently in the midst of the fifth major technology cycle of the past half a century. The previous four were the mainframe era of the 1950s and 60s, the mini-computer era of the 1970s and the desktop Internet era of the 80s. The current cycle is the era of the mobile Internet, she says — predicting that within the next five years “more users will connect to the Internet over mobile devices than desktop PCs.” As she puts it on one of the slides in the report: “Rapid Ramp of Mobile Internet Usage Will be a Boon to Consumers and Some Companies Will Likely Win Big (Potentially Very Big) While Many Will Wonder What Just Happened.”
Meeker says that mobile Internet usage is ramping up substantially faster than desktop Internet usage did, a view she and her team arrived at by comparing the adoption rates of iPhone/iPod touch to that of AOL and Netscape in the early 1990s. According to Meeker, adoption of the Apple devices is taking place more than 11 times faster that of AOL, and several times as fast as that of Netscape. Helping to drive this is 3G technology, which Morgan Stanley says recently hit an “inflection point” by being available to more than 20 percent of the world’s cellular users (although penetration is only 7 percent in Central/South America and 13 percent in Asia/Pacific — excluding Japan, where it’s 96 percent).
But that mobile boom will take its toll on carriers, Meeker says, because mobile Internet use is all about data. The average cell-phone usage pattern is 70 percent voice, while the average iPhone is 45 percent voice. At NTT DoCoMo, data usage accounts for 90 percent of network traffic. The analyst says her team expects mobile data traffic to increase by almost 4,000 percent by 2014, for a cumulative annual growth rate of more than 100 percent. Such numbers will likely strike fear into the hearts of carriers, but joy into the hearts of equipment suppliers and mobile service companies.
One of the implications of mobile access is a growth in ecommerce, says Meeker, featuring things such as location-based services, time-based offers, mobile coupons, push notifications, etc. In China, the success of social network Tencent proves that virtual goods can be a big business, she says — virtual goods sales accounted for $2.2 billion worth of the company’s revenue in 2009 and $24 in annual revenue per user. Online commerce and paid services made up 32 percent of mobile revenue in Japan in 2008, up from just 14 percent in 2000. Meeker’s report suggests that the rest of the world — which is still below the 14 percent-mark — could see much the same trajectory over the next 10 years.
Meeker says that users are more willing to pay for content on mobile devices than they are on desktops for a number of reasons, including:
* Easy-to-Use/Secure Payment Systems — embedded systems like carrier billing and iTunes allow real-time payment
* Small Price Tags -– most content and subscriptions carry sub-$5 price tags
* Walled Gardens Reduce Piracy -– content exists in proprietary environments, difficult to get pirated content onto mobile devices
* Established Store Fronts -– carrier decks and iTunes store allow easy discovery and purchase
* Personalization -– more important on mobiles than desktops
On the social networking side, Meeker’s report notes that social network use is bigger than email in terms of both aggregate numbers of users and time spent, and is still growing rapidly. Social networking passed email in terms of time spent in 2007, hitting about 100 billion minutes/month globally — it’s now twice that — and passed email in terms of raw user numbers in July of 2009, with more than 800 million. Given the rate at which Facebook has been growing, that number is probably now closer to a billion. Meeker attributes social networking’s success to the fact that it’s a “unified communications + multimedia creation tool/repository in your pocket.” And Japan’s experience makes how crucial mobile is to that equation: Mixi, one of the country’s largest social networks, has seen its mobile page views grow to 72 percent of the total from just 17 percent three years ago.
这里的逻辑是——针对iPad的应用程序及软件开发并不困难,尤其是已在 Apple Store提供应用程序的开发者,只需调整程序界面和互动内容即可;而对软件企业来说,多一个平台,就多一个机会。况且,透过网络下载就可做全球性生意, 对规模不大、行销资源不多的应用软件商,这是除与OEM、ODM硬件企业搭售外,另一新兴的通路和机会点。