Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Вместо двоеточия знак ^ 
Author Message
Batya



PostPosted: Mon Sep 20, 2010 14:15    Post subject: Reply with quote

taravasya wrote:
Мне нужен скрипт, по выполнению которого, тотал командер переходил бы в папку:
A:\Orders\Date

Code:
'===================================
' Переход в TC в папку текущей даты
'===================================
Option Explicit
Dim WSH, Path, TCPath, strDayOfMonth, strMonth, strYear, YYYYMMDD
Set WSH = CreateObject("WScript.Shell")
Path    = "a:\order\"

strDayOfMonth = right("0" & day  (date()), 2)
strMonth      = right("0" & month(date()), 2)
strYear       = right(      year (date()), 4)
YYYYMMDD      = strYear & "-" & strMonth & "-" & strDayOfMonth

TCPath = WSH.ExpandEnvironmentStrings("%Commander_Path%") & "\totalcmd.exe"
WSH.Run """" & TCPath & """ /S /O /L=""" & Path & YYYYMMDD & """", 1, True

Set WSH = Nothing
WScript.Quit 0


SendKeystroke не используется - проблем с раскладкой не будет.
_________________
Нет, я не сплю. Я просто медленно моргаю.
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group