Search found 11 matches
- 13 Sep 2012 10:33
- Forum: DOS Batch Forum
- Topic: ~ Hide Dos Console ~
- Replies: 3
- Views: 5015
Re: ~ Hide Dos Console ~
"Convert" bat to vbs @echo off & setlocal enabledelayedexpansion :: :: Skrypt ukrywający okno plików BAT by e4nd :: set file_=plik.bat :: :: for %%c in (%file_%) do ( if exist %%c ( copy %file_% %%~nc.BAK>nul set ext=%%~nc )else ( echo Brak pliku %file_% w wskazanej lokalizacji pause &...
- 29 Aug 2012 13:00
- Forum: DOS Batch Forum
- Topic: Moving files by FTP
- Replies: 1
- Views: 2554
Re: Moving files by FTP
http://www.webcom.com/help/ftp/rename.shtml
@echo off
::
set host=
set user=
set pass=
::
(
echo user %user% %pass%
echo cd %5
echo mget FSeq_001_IN_*.dat
echo rename *.dat backup/*.dat
echo disconnect
echo quit
)>> "ftp.txt"
::
ftp -n -s:ftp.txt %host%
::
if exist ftp.txt del ftp.txt
pause>nul
- 27 Jul 2012 09:32
- Forum: DOS Batch Forum
- Topic: Fullscreen
- Replies: 2
- Views: 4344
Re: Fullscreen
Using Debug.exe @ECHO OFF ( ECHO A ECHO MOV AX,13 ECHO INT 10 ECHO MOV ax,3 ECHO INT 10 ECHO INT 20 ECHO. ECHO G ECHO Q ) | DEBUG 1>NUL echo Your command pause>nul batbox @echo off :: batbox.exe Del /f /q /a t.dat >nul 2>&1 For %%b In ( "4D534346000000004F030000000000002C0000000000000003010...
- 17 Jul 2012 01:36
- Forum: DOS Batch Forum
- Topic: Color output - Where is the <CR><LF>?
- Replies: 6
- Views: 6745
Re: Color output - Where is the <CR><LF>?
@echo off & setlocal enabledelayedexpansion echo. Call :Color 0B "D" Call :Color 0c "o" Call :Color 0d "s" Call :Color 0e "T" Call :Color 2b "i" Call :Color 2c "p" Call :Color 2d "s" Call :Color 0B " D" Call :Color ...
- 06 Jul 2012 09:44
- Forum: DOS Batch Forum
- Topic: [code] Mini-Monitor and allarm system
- Replies: 4
- Views: 7491
Re: Mini-Monitor and allarm system
everything OK http://img6.imagebanana.com/img/4rfwtge3/thumb/1.jpg Mini-Monitor.counter_list.txt "Procesor(_Total)\Czas procesora (%)" There is better to use wmic @echo off for /f "delims=" %%$ in (' wmic cpu get loadpercentage ^| find /v "LoadPercentage"') do ( echo %%...
- 05 Jul 2012 10:26
- Forum: DOS Batch Forum
- Topic: [code] Mini-Monitor and allarm system
- Replies: 4
- Views: 7491
- 05 Jul 2012 10:03
- Forum: DOS Batch Forum
- Topic: Copy Batch File
- Replies: 3
- Views: 3478
Re: Copy Batch File
User_List.txt - %ComputerName% users or IP addresses
set drive=d - target disk
set drive=d - target disk
Code: Select all
@echo off
set drive=d
for /f "delims=" %%! in (User_List.txt) do (
copy "c:\Drive\*.pdf" "\\%%!\%drive%$\%HOMEPATH%\desktop\*.pdf"
)
pause>nul
- 29 Jun 2012 11:50
- Forum: DOS Batch Forum
- Topic: Batch file to update regisrty
- Replies: 4
- Views: 4097
Re: Batch file to update regisrty
Not tested 1. @echo off :: set EXCEL=HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Excel\Security\FileValidation set WORD=HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Word\Security\FileValidation :: REG ADD "%WORD%" /V EnableOnLoad /T REG_DWORD /F /D 0 >nul REG ADD...
- 29 Jun 2012 11:18
- Forum: DOS Batch Forum
- Topic: password protection
- Replies: 5
- Views: 4831
Re: password protection
Secondly, I already have predefined folders, so I don't need to create them. Is there a way in which I can list those folders which are supposed to be inaccesible / accesible again. before: http://img6.imagebanana.com/img/jdnks9sy/thumb/Przed.gif at: http://img6.imagebanana.com/img/viy0gsq7/thumb/P...
- 28 Jun 2012 11:42
- Forum: DOS Batch Forum
- Topic: how to do replace in file?
- Replies: 3
- Views: 3585
Re: how to do replace in file?
Sorry for my English, I use the translator The file "file.txt" <span></span>. <span></span>. <span></span>. @echo off & setlocal enabledelayedexpansion :: :: remember the "^" before each ">", "<" :: replaces "<span> </ span>" -> ".<span>&quo...
- 17 Mar 2012 02:47
- Forum: DOS Batch Forum
- Topic: MASSIVE XP_SP1 BUG [corrupted stdout affects all *.EXE] !
- Replies: 23
- Views: 17971
Re: MASSIVE XP_SP1 BUG [corrupted stdout affects all *.EXE]
@echo off for /f "skip=4 tokens=1,2* delims= " %%a in ('net user') do ( echo %%a echo %%b echo %%c )>>"ASCII" cmd /u /c type "ASCII" > "Unicode" :: notepad "Unicode" |notepad "ASCII" @echo off for /f "skip=4 tokens=1,2* delims= "...