• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Папка MyUtils


Commit MetaInfo

Revision9d5bedd6ecb082eadcfdffbba73cb7b2ca6f77cf (tree)
Time2011-09-28 14:48:07
AuthorКонстантин Кошкин <catsoft1940@gmai...>
CommiterКонстантин Кошкин

Log Message

Скрипт выгрузки данных из базы

Change Summary

Incremental Difference

diff -r 186e21ac3a39 -r 9d5bedd6ecb0 Scripts/1C/Backup/unload.bat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Scripts/1C/Backup/unload.bat Wed Sep 28 09:48:07 2011 +0400
@@ -0,0 +1,70 @@
1+@echo off
2+
3+rem ‘ªà¨¯â ¢ë£à㧪¨ ¤ ­­ëå ¨§ 1‘
4+rem
5+rem  à ¬¥âàë
6+rem %1 - ãâì ª ¡ §¥
7+rem %2 - ®«ì§®¢ â¥«ì
8+rem %3 -  à®«ì
9+
10+rem  áâனª¨
11+
12+rem ãâì ª  à娢­®¬ã ª â «®£ã
13+set arcpath=E:\base\!!!Backup\
14+
15+rem ˆ¬ï ä ©«  ¢ë£à㧪¨
16+set arcfile=1s
17+
18+rem ãâì ª ¨á¯®«­ï¥¬®¬ã ä ©«ã 1cv7
19+set v7path="C:\Program Files\1Cv77\BIN\1cv7s.exe"
20+
21+rem  áâனª¨ ¯® 㬮«ç ­¨î
22+set default_base=E:\base\1C-‚®§­¥á¥­áª¨©\
23+set default_user=Š®èª¨­_Š®­á⠭⨭
24+set default_pass=478050
25+
26+rem ãâì ª ¡ §¥
27+if "%1" == "" (
28+ set base=%default_base%
29+) else (
30+ set base="%1"
31+)
32+
33+rem ®«ì§®¢ â¥«ì
34+if "%2" == "" (
35+ set user=%default_user%
36+) else (
37+ set user="%2"
38+)
39+
40+rem  à®«ì
41+if "%3" == "" (
42+ set pass=%default_pass%
43+) else (
44+ set pass="%3"
45+)
46+
47+rem ƒ¥­¥à æ¨ï ª®­ä¨£ãà æ¨®­­®£® ä ©«  ­ áâ஥ª ¢ë£à㧪¨
48+
49+rem ãâì ª ª®­ä¨£ãà æ¨®­­®¬ã ä ©«ã ­ áâ஥ª ¢ë£à㧪¨
50+set conf="%base%unload.cfg"
51+
52+echo [General] > %conf%
53+echo Output="%base%unload.log" >> %conf%
54+echo Quit=1 >> %conf%
55+echo UnloadData=1 >> %conf%
56+echo [UnloadData] >> %conf%
57+for /f "tokens=1,2,3 delims=." %%i in ("%date%") do (
58+for /f "tokens=1,2 delims=:" %%l in ("%time%") do (
59+echo UnloadToFile="%arcpath%%arcfile%_%%i%%j%%k_%%l%%m" >> %conf%
60+))
61+echo IncludeUserDef=1 >> %conf%
62+
63+rem ‡ ¯ãcª ¢ë£à㧪¨
64+%v7path% config /d"%base%" /n%user% /p%pass% /@%conf%
65+goto :exit
66+
67+:error
68+echo Žè¨¡ª  ¢ ¯ à ¬¥âà å
69+
70+:exit