Home / Microsoft / Microsoft DOS / Batch Programs Thread.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 23 24 [25] 26 27 ... 37 - (Bottom) Print
Author Topic: Batch Programs Thread.  (Read 96226 times)
gamerx365
Adviser



Thanked: 1
Posts: 664

Experience: Experienced
OS: Windows 7


Radda Radda!

Gamerx365-Net 1 1
« Reply #360 on: May 08, 2009, 08:21:27 AM »

I started work on EDS:The Chronicles of Adult Content. It will never be released unfortunatley. XD
IP logged

macdad-
Topic Starter
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #361 on: May 08, 2009, 11:12:58 AM »

ESRB Rating: A  ;)
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Ädamas
Beginner



Thanked: 1
Posts: 64




« Reply #362 on: May 10, 2009, 05:30:58 AM »

i have made a menu opens a web browser and it then asks for a web site or if you want a blank page (it also has a self edit option, but it does not work all the time)
Code: [Select]
@echo off
:run
cls
echo type command
echo edit
echo chrome
echo end

set/p "cho=>"
if %cho%==edit start notepad program_menu.bat
if %cho%==chrome goto chrome
if %cho%==end goto end
goto run

:chrome
echo type website or blank
set /p "cho3=>"
if %cho3%==blank goto just run chrome
cd "C:\Documents and Settings\%userprofile%\Local Settings\Application Data\Google\Chrome\Application"
start chrome.exe www.%cho3%
goto run

:just run chrome
cd "C:\Documents and Settings\%userprofile%\Local Settings\Application Data\Google\Chrome\Application"
start chrome.exe
goto run

:end



i could make it do a sort of goolge sarch thing more on that later (i need to go now)
« Last Edit: May 12, 2009, 12:52:03 AM by Ädamas » IP logged

you're just jealous because the voices talk to me, and not you.
devcom
Apprentice



Thanked: 37
Posts: 521


« Reply #363 on: May 10, 2009, 11:50:32 AM »

my old project, 'Searcher'

Code: [Select]
@echo off

setlocal enabledelayedexpansion

set Sch_choice=,Google,Youtube,Yahoo,
set Sch=Google
set save_history=1

:LOOP
echo.
echo.= Menu =================================================
echo.
for /f "tokens=1,2,* delims=_ " %%A in ('"findstr /b /c:":menu_" "%~f0""') do echo.  %%B  %%C
echo.
echo.========================================================
choice /C:123 >nul
set choice=%errorlevel%
call :menu_%choice%
goto LOOP

:menu_1   Search Type: '!Sch!' [!Sch_choice:~1,-1!]
call :NIL Sch "!Sch_choice!"
cls
exit /b

:menu_2   Search
call :Search "!Sch!"
cls
exit /b

:menu_3   History
call :History
cls
exit /b

:NIL

set lst=%~2
set dlm=%lst:~-1%
set old=!%~1!
set fst=
for /f "delims=%dlm%" %%a in ("%lst%") do set fst=%%a
set lll=!lst:%dlm%%old%%dlm%=%dlm%@%dlm%!%fst%%dlm%
for /f "tokens=2 delims=@" %%a in ("%lll%") do set lll=%%a

for /f "delims=%dlm%" %%a in ("%lll%") do set new=%%a

SET %~1=%new%

exit /b


REM --------------------------------------------------------------

:Search
echo.
echo.
set type=%~1
if '%type%' equ '' EXIT /b
choice /C:YN /M "Search %type% ??"
echo.
if not %errorlevel% equ 1 EXIT /b
set /p Schtxt=Search:

call set Schtxt=%%Schtxt: =+%%
call :Config

call start %%%type%%%

if %save_history% equ 1 echo.%date% %time% %type% %Schtxt% >>SearchHistory.log
exit /b

:Config
set Google=http://www.google.com/search?q=%Schtxt%
set Youtube=http://www.youtube.com/results?search_query=%Schtxt%
set Yahoo=http://search.yahoo.com/search?p=%Schtxt%
exit /b

REM --------------------------------------------------------------

:History
cls
echo.HISTORY:
echo.
type SearchHistory.log
echo.
echo.
pause
exit /b

you can add your sites if you know how to ;)

PS. you need Vista choice...
IP logged

Download: Choice.exe
macdad-
Topic Starter
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #364 on: May 10, 2009, 03:00:18 PM »

Nice one Dev!

Very well developed.  8)
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Helpmeh
Egghead



Thanked: 116
Posts: 3,583

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #365 on: May 10, 2009, 03:25:40 PM »

i have made a menu opens a web browser and it then asks for a web site or if you want a blank page (it also has a self edit option, but it does not work all the time)
Code: [Select]
@echo off
:run
cls
echo type command
echo edit
echo chrome
echo end

set/p "cho=>"
if %cho%==edit start notepad program_menu.bat
if %cho%==chrome goto chrome
if %cho%==end goto end
goto run

:chrome
echo type website or blank
set/p "cho3=>"
if %cho3%==blank goto just run chrome
cd C:\Documents and Settings\jason\Local Settings\Application Data\Google\Chrome\Application
start chrome.exe www.%cho3%
goto run

:just run chrome
cd C:\Documents and Settings\jason\Local Settings\Application Data\Google\Chrome\Application
start chrome.exe
goto run

:end



i could make it do a sort of goolge sarch thing more on that later (i need to go now)
Won't work unless you replace C:\Documents and Settings\jason with %userprofile%, and you wrap it in quotes...you'll get an error otherwise.
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
Ädamas
Beginner



Thanked: 1
Posts: 64




« Reply #366 on: May 11, 2009, 01:46:08 AM »

you mean it wont work on your computer cause it works on mine
IP logged

you're just jealous because the voices talk to me, and not you.
macdad-
Topic Starter
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #367 on: May 11, 2009, 05:56:36 AM »

A space is needed between the Set and /P  ;)
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
devcom
Apprentice



Thanked: 37
Posts: 521


« Reply #368 on: May 19, 2009, 07:49:41 AM »

it makes list of specified folders and then you can use this to jump there fast everywhere on your disks like games movies etc.

Code: [Select]
@echo off
mode 50,100
setlocal enabledelayedexpansion

REM <!-- SETUP

set selIco=[%%]
set unselIco= %%
set yourDir="E:\MEDIA\" "F:\MEDIA\"

REM PUT "" ON ALL DIRS & PUT \ AT THE END

REM -->

set num=1
for /f "tokens=*" %%a in ('dir /b %yourDir%') do (
set Ico!num!=%unselIco%
set word!num!=%%a
set /a num+=1
)

set /a maxnum=%num%-1
set Ico1=%selIco%
set num=1
set selNum=1

:ECHO
cls
set num=1
echo.#############################
echo.
for %%a in (%yourDir%) do (
echo.------------------------- %%a
for /f %%b in ('dir /b %%a') do (
call set tmpw=%%Ico!num!%%%%word!num!%%%
echo !tmpw!
set /a num+=1
)
echo.
)
call echo.Selected: %selNum% %%word%selNum%%%
echo.#############################
choice.exe /C wsd >nul

if %errorlevel% equ 1 goto UP
if %errorlevel% equ 2 goto DN
if %errorlevel% equ 3 goto START
goto ECHO

:UP
set Ico%selNum%=%unselIco%
set /a selNum-=1
if %selNum% lss 1 set selNum=%maxnum%
set Ico%selNum%=%selIco%
goto ECHO


:DN
set Ico%selNum%=%unselIco%
set /a selNum+=1
if %selNum% gtr %maxnum% set selNum=1
set Ico%selNum%=%selIco%
goto ECHO

:START
call set tmpa=%%word%selNum%%%
for %%a in (%yourDir%) do (
set tmpb=%%~a
if exist "!tmpb!\%tmpa%" set openDir=!tmpb!
)

start explorer "%openDir%%tmpa%"
exit

PS well i dont speek english so good to tell you this script do but try it ;)

EDIT: ofc you need choice.exe
« Last Edit: May 19, 2009, 10:03:08 AM by devcom » IP logged

Download: Choice.exe
Helpmeh
Egghead



Thanked: 116
Posts: 3,583

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #369 on: May 19, 2009, 07:30:36 PM »

you mean it wont work on your computer cause it works on mine
But because you posted it here, it is meant to be used by others. Userprofile is the variable for C:\Documents and Settings\USERNAME , and changes for each computer allowing any computer which runs it to use it.
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
macdad-
Topic Starter
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #370 on: May 21, 2009, 06:16:57 AM »

Finished SysStat v3.

With new features:
-Format Floppies
-Check Processor Type, ID, etc.
-Operation History(This show what features you have used in the past)
-Error Notification

There is also a Temp folder created at first run to store the operation log.

Enjoy

[attachment deleted by admin]
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Reno
Hopeful



Thanked: 32
Posts: 323




« Reply #371 on: May 22, 2009, 06:57:12 AM »

A space is needed between the Set and /P  ;)

wrong, the following will work
set/p var=enter value:
no space needed between set and /p

quotes for pathname containing space is needed for copy, move, ren, dir, del, etc..etc..
quotes for pathname containing space is optional for cd
IP logged
Helpmeh
Egghead



Thanked: 116
Posts: 3,583

Experience: Experienced
OS: Windows XP


Roar.

1
« Reply #372 on: June 02, 2009, 04:30:20 PM »

ESRB Rating: A  ;)
AO...Adult Only.
IP logged

Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.
devcom
Apprentice



Thanked: 37
Posts: 521


« Reply #373 on: June 03, 2009, 01:50:18 PM »

i've just finished audio player ;D it plays only .mp3 files, you can create your playlist and it will auto play them ;)

this is how it looks:

Code: [Select]
================================================================
LIST:
28 - ZZ Top - La Grange.mp3
34 - Tenacious D - The Metal.mp3
37 - Slipknot - Before I Forget.mp3
52 - Dragonforce - Through The Fire And The Flames.mp3
================================================================
Now playing:

Artist  :       Dragonforce
Title   :       Through the Fire and Flames
Genre   :

428s. <> [##                                                  ]
================================================================
O - open new file
P - stop played file & pause
C - clear temp
D - next file

tell me an errors... ;)


EDIT:

you can find it here :http://www.computerhope.com/forum/index.php/topic,59426.msg565578.html#msg565578
« Last Edit: June 04, 2009, 03:30:43 PM by devcom » IP logged

Download: Choice.exe
macdad-
Topic Starter
Expert



Thanked: 39
Posts: 2,520


LoneWolf's Circuits
« Reply #374 on: June 03, 2009, 06:58:05 PM »

Seems to be missing Playlist.lst
IP logged

If you dont know DOS, you dont know Windows...

Thats why Bill Gates created the Windows NT Family.
Pages: 1 ... 23 24 [25] 26 27 ... 37 - (Top) Print 
Home / Microsoft / Microsoft DOS / Batch Programs Thread. « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.134 seconds with 20 queries.