“ কাল আমার পরীক্ষা। কিন্তু এটা আমার কাছে বিশেষ কোন ব্যাপারই না, কারন শুধুমাত্র পরীক্ষার খাতার কয়েকটা পাতাই আমার ভবিষ্যৎ নির্ধারন করতে পারেনা॥ ” —টমাস আলভা এডিসন।

Breaking News

Technology

Life & Style

Downdoad zone

Thursday 5 March 2015

Batch Programming File Commands
















       @


  Batch Programming


Batch File Commands




In DOS version 3.3 and later, hides the echo of a batch command. 
Any output 
generated by the command is echoed. The at-sign can be prefixed 
to any DOS 
command, program name, or batch file name within a batch file.

@[command]
    examples@{Seperates sections of the batch 
file without
 diplaying the DOS prompt.}

@echo OFF{Hides the echo off report.}
%DIGITReplaceable batch parameters which are defined by the user when 
the batch is
 executed. The parameters are separated by spaces, commas, or
 semicolons.

%digit{Digit: any digit from 0 to
 9. %0 has the value 
of the batch command as it
 appears on the 
command line when the batch
 is executed. %1
represents the first string typed 
after the batch 
commmand. Each occurrence 
of %digit is replaced
by the corresponding string from
 the batch 
command line.}
    examplesMYBATCH DOC A:
COPY *.%1 %2
{Copies all .DOC files in the default
directory to
 drive A:}
%VARIABLE%Replaces the DOS environment variable name with its environment value.

%variable%{Variable: a string of uppercase
 characers in the
environment associated with a string
 value.
 Variable is created in the environment
 by using
SET.}
    examples%PATH%{Returns the value of PATH, the current
 search
path, which is executable.}

echo %PATH%{Displays the value of PATH, the current search
path.}

%PROMPT%{Returns the value of PROMPT, the current
 prompt string, which is executable.}

echo %PROMPT%{Displays the value of PROMPT, the current
 prompt string.}

echo The current search path is: %PATH%{Displays the message including the current search
path.}

set USER=John
if %USER%= =John goto LABEL
{Since the value of USER does equal "John", the
control is transferred to the label, LABEL.}
CALLLoads and executes a batch file from within a batch file as if it were a external
command. When a second batch file completes, control is returned to the calling file.

call [drive:][path]filename [batch-parameters]
Before DOS version 3.3:
command /c [drive:][path]filename [batch-parameters]
CLSClears the video display screen, setting the cursor in the upper left-hand corner.

cls
ECHOControls whether commands and comments within a batch file are displayed.

echo [ON|OFF|message|.]
    examplesecho{Displays echo status}

echo ON{Restores normal display activity.}

echo OFF{Halts display of DOS prompt and commands.}

echo Processing...{Displays "Processing..." on the screen.}

echo %USER%{Displays the value of USER on the screen.}

echo.{Displays a single blank line on the screen.}

echo ^L > prn{Sends an ASCII control-code (form feed) to the
printer. Press <Ctrl> plus <L> to type the ^L
character.}

echo Y|Del *.*{Answers the DEL "Are you sure" question
automatically.}
FORRepeats the operation of a DOS command for each member of a list. Use CALL
 to execute a batch file as a command.

for %%argument in (list) do command{Argument: any letter from A to Z. List: a sequence
 of strings separated by spaces or commas. Wildcards are allowed.}
    examplesfor %%d in (A,C,D) do DIR %%d *.*{Displays the directories of drives A, C, and D
sequentially.}

for %%f in (*.TXT *.BAT *.DOC) do TYPE %%f{Types the contents of all .TXT, .BAT, and .DOC
files in the current default directory.}

for %%P in (%PATH%) do if exist %%P\*.BAT COPY %%P\*.BAT C:\BAT{Copies all batch files which exist in any directory
on the DOS command search path into the directory C:\BAT.}

for %%f in (*.PAS) do call compile %%f{Compiles all .PAS files in the current default
directory.}
GOTOTransfers control within a batch file to a line identified by a label. The label must
be of the form ":LABEL".

goto LABEL
:LABEL
IFTests a condition and executes a command only if the condition is TRUE. But if
the NOT modifier is present, the command will be executed only if the condition
is FALSE.

if [notcondition command{Condition: errorlevel number; string1= =string2;
or exist filename. Command: any DOS command,
batch command, batch file name, or program name.}
    examplesif [noterrorlevel number command{Errorlevel: an exit code returned by a program or
an external command. The following DOS
commands return an exit code: BACKUP,
RESTORE, FORMAT, REPLACE, and XCOPY.

 Number: a numerical value (integer) against
which
 the exit code is compared. The condition is
TRUE if the exit code returned by the previous
 program is greater than or equal to number.
The condition is FALSE if the exit code is less than number.}

BACKUP C:\*.* A: /s
if errorlevel 3 goto TROUBLE
{If the BACKUP command exits with a code
 of 3 or higher, control will be transferred to
 the label TROUBLE.}

if errorlevel 3 if not errorlevel 4 echo ERROR #3 occurred
if errorlevel 4 if not errorlevel 5 echo ERROR #4 occurred





{Nested if statements that determine the exact
 error number.}

if [notstring1= =string2 command{The condition is TRUE if both strings are
identical. The comparison is case sensitive.
f either string is blank, a syntax error occurs.}

if (%1)= =(LTRS) CD C:\WORD\LTRS{If the first parameter is LTRS, the change
directory to LTRS.}

if "%1"= ="" goto ERROR{If there is no parameter, then control is
transferred to label ERROR.}

if not %2X= =X DIR %2\*.*{If there is a second parameter, then display
all the files contained in the directory %2.}

if not "%3"= ="" if not "%3"= ="b" if not "%3"= ="B" goto BADPARAM{If there is no third parameter or if it is
anything other than b or B, then go to label
BADPARAM.}

if [notexist filename command{The condition is TRUE if filename can be
located. The filename can include drive and
path specifications. Wildcards are allowed.}

if exist D:\%1\nul CD %1{Tests for the existence of directory %1 even
if it contains no files, then changes to that
directory if it exists.}

if not exist A:\FLASH.EXE COPY C:\PROJECTS\FLASH.EXE A:{Copies FLASH.EXE to drive A, but only if
 it
 doesn't exit there already.}
PAUSEPauses the running of a batch file and displays the message "Press any key to
continue ..." on the screen. If the optional message is included, it will be displayed
 first. Use pause to optionally terminate the batch file with <Ctrl-Break> at a safe
place. The optional message is not displayed when echo is OFF, so the message
must be echoed on the preceding line.

pause [message]
    examplespause{Displays "Press any key to continue ...".}

pause < nul{Waits with no comment.}

pause Do you want to continue?{Displays "Do you want to continue?" with
"Press any key to continue ..." on the next
line.}
REMAdds remarks to a batch file.

rem [remark]
    examples@rem{Hides the remark from display.}
SETSet will view the DOS environment or create, change, or delete environment
values.

set [variable=[value]]{Variable: a string of characters,
unbroken by
 spaces, which are converted to uppercase
 letters in the environment. Value: a string of characters, case specific, associated with variable.}
    examplesset{Display the entire DOS environment.}

set USER=John{Sets the value of USER to the string,
"John".}

set USER={Removes USER from the environment.}

set PATH=C:\;C:\DOS{Sets C:\;C:\DOS as the current search path.}

set PATH=%PATH%;C:\TEST{Appends ;C:\TEST to the current search path.}
SHIFTShifts any parameter on the command line one position to the left. Use SHIFT to refer to multiple parameters by one name or to use more than ten parameters on a single command line.

shift
    examples:LOOP
COPY %1 A:
shift
if not (%1)==() goto LOOP
{Beginning with the first parameter, all the parameters listed on the command line are iterated and a file, the value of the parameter, is copied to A:.}
Miscellaneous

command > nul{Redirects command output to oblivion.}

command > file{Redirects command output to file.}

command >> file{Appends command output to file.}

command < file{Redirects file output to command.}

PATH{Displays "PATH=" followed by the value of PATH, the current search path.}

PATH directories{Sets directories as the current search path.}

PATH = directories{Sets directories as the current search path.}

PATH;{Disables extended command searching and confines the searching to the default directory.}

PROMPT{Resets the prompt string to its default, $n$g.}

CD{Displays the current directory and its path.}

.{Represents the default directory (If PATH=D:\;C:\SYS;C:. then current directory will be searched after D: and C:\SYS).}

..{Represents the parent of the default directory (C:\TOOLS\WP\LTRS.DOC is the same as ..\WP\LTRS.DOC).}

%%{A literal "%".}



From
Read more ...

এইবার ঘড়ি দেখার প্রোগ্রাম তৈরী করুন ৪ লাইনের কোড দিয়ে নোটপ্যড এ

সবাই পছন্দ করে প্রোগ্রাম তৈরী করতে... অনেকেরই স্বপ্ন প্রোগ্রামার হওয়া।। কিন্তু তাদের মাঝে কাজ করে এক অজানা ভীতি... মনে করে ওরে বাবা!! প্রোগ্রামিং কত্তো কঠিন কাজ এটা আরে ভাই এত্তো ভয় পাওয়ার কিছু নাই... আপনি যদি যোগ বিয়োগ করতে পারেন তবেই আপনি একজন প্রোগ্রামার হওয়ার যোগ্যতা রাখেন... যাইহোক আজ একটা সিম্পল Batch প্রোগ্রাম দেখাবো যার মাধ্যমে আপনি আপনার কম্পিউটারে ঘড়ি চালানোর প্রোগ্রাম বানাতে পারবেন নিজে নিজে ;) কাজ শুরু করা যাক... প্রথমেই নোটপ্যড ওপেন করুন অথবা পিসির ডেস্কটপ এ গিয়ে mouse এর right button এ ক্লিক করে new তে যান তারপর text documents এ যান... নাম দিন clock.txt এবং ওপেন করুন...
নিচের কোড টা লিখুন @echo off :start echo Date: %date% Time: %time% goto start তারপর File থেকে save as এ যান এবং clock.bat নামে সেভ করুন... ;) এইবার clock.bat file টা ওপেন করুন... হুম আপনি আপনার ঘড়ি দেখার প্রোগ্রাম তৈরী করে ফেলেছেন.
Read more ...

Wednesday 4 March 2015

সিসি ক্যামেরার কাজ করুন আপনার Android ফোন দিয়ে (চোখের অজান্তে ভিডিও করে ফেলুন সবকিছু

বরাবরের মত আজও আপনাদের জন্য নিয়ে আসলাম দারুন ১টি Android অ্যাপ।  নাম HTV Hidden Camera ! এটা দিয়ে আপনি CC ক্যামেরার মত কাজে লাগাতে পারেন, আমি নিজেই এই অ্যাপ টি দিয়ে CC ক্যামেরা হিসেবে  ব্যবহার করি। এটা আমার কাছে ভাল লেগেছে আশা করি আপনাদের ও ভাল লাগবে। তাহলে দেরি কিসের নামিয়ে নেন আজই !
ডাউনলোড লিঙ্ক –   এখানে ক্লিক করুন  ।।




ডাউনলোড করার নিয়ম –



প্রথমে অ্যাপটি ডাউনলোড করে ইন্সটল দিন, তারপর চালু করুন,তাহলে উপরে দেখতে পাবেন In Progress (রেকর্ডিং হচ্ছে) এবার আপনি কে কি করতেছে সব দেখতে পাবেন, আর হ্যাঁ আপনি অন্য কাজও করতে পারবেন কিন্তু রেকর্ড বন্ধ হবে না। বন্ধ করতে হলে উপরের In Progress (রেকর্ডিং হচ্ছে) ক্লিক করুন ব্যাস গ্যালারীর মধ্যে দেখুন সেভ হয়ে গেছে।
কেমন লাগল? ভাল না খারাপ? নাকি কোন সমস্যা হল? কমেন্ট করে জানাবেন।

Read more ...

গুগল প্লেস্টোরে রিদ্মিক কিবোর্ড নিষিদ্ধ

অ্যান্ড্রয়েড অপারেটিং সিস্টেম চালিত ডিভাইসে জনপ্রিয় বাংলা লেখার অ্যাপ্লিকেশন রিদ্মিক কিবোর্ড গুগল প্লেস্টোর থেকে সরিয়ে দেয়া হয়েছে। মূলত কপিরাইট আইন ভঙ্গ করায় অ্যাপটি ব্যান করা হয়েছে।
রিদ্মিক কিবোর্ডে বিভিন্ন ডিজাইন থাকায় ডিভাইসের থিম বা ডিজাইনের সঙ্গে মানানসইটি বেছে নেওয়ার সুযোগ আছে। এছাড়া এতে তিন ধরনের কিবোর্ড লেআউট আছে। ডিফল্ট ইংরেজি, ফোনেটিক বাংলা ও ইউনিবিজয়।
রিদ্মিক কিবোর্ডের প্লেস্টোরের ঠিকানায় গেলে  ‘We’re sorry, the requested URL was not found on this server’ এই ম্যাসেজ দেখাচ্ছে।


রিদ্মিক কিবোর্ডের অনেক ব্যবহারকারী মনে করছেন, বিজয় ডিজিটালের প্রধান নির্বাহী মোস্তাফা জব্বারের অভিযোগের কারণে গুগল প্লেস্টোর থেকে রিদ্মিক কিবোর্ডে নিষিদ্ধ করা হয়েছে।
এই সম্পর্কে মোস্তাফা জব্বার টেকশহরডটকমকে জানান, মেধাস্বত্ত্ব সংরক্ষণের জন্য রিদ্মিক কিবোর্ডকে নিষিদ্ধ করা হয়েছে। এই ব্যাপারে আমার থেকে গুগলই ভালো বলতে পারবে।
কি কারণে ব্যান করা হতে পারে এমন এক প্রশ্ন জবাবে তিনি বলেন , কপিরাইট যদি লঙ্ঘন করে, তবে তো নিষিদ্ধ করা হবেই।
বিজয় ডিজিটালের পক্ষ থেকে রিপোর্ট করা হয়েছে কিনা এমন প্রশ্ন জবাবে তিনি কোন উত্তর দেননি।
রিদ্মিক কিবোর্ডের ডেভেলপার শামীম হাসনাতের সাথে টেলিফোনে যোগাযোগ করার চেষ্টা করা হলে তাকে পাওয়া যায়নি।
গুগল ডেভেলপার গ্রুপের ম্যানেজার আরিফ নিজামি জানান, সাধারণত কেউ রিপোর্ট না করলে কোন অ্যাপ প্লেস্টোর থেকে সরিয়ে দেয়া হয় না।
তিনি আরও জানান, বাংলাদেশের কোন কিছুর কপিরাইট শুধু এ দেশের জন্য কার্যকর, আন্তর্জাতিকভাবে নয়। যেমন- অস্ট্রেলিয়ায় কপিরাইট আইনের কারণে জিমেইল নামটি ব্যবহার করা হয় না, বরং ব্যবহার হয় গুগল মেইল। রিদ্মিক কিবোর্ডে যদি নিষিদ্ধ করা হয় তবে গুগল  চাইলে অন্য দেশে এটা ব্যবহার করা যাবে।
Read more ...
Designed By GR