..::: لیست دستورات فایل های bat .

khorzu

Member
معمولا اگه بخواید تنها از خود فلش برای تولید فایل های اجرایی استفاده کنید ... به محدودیت های فلش برای دسترسی به دستور های سیستمی بر می خورید . توی این جور مواقع ترکیب فایل های .bat که برای اسکریپت نویسی به زبان داخلی ویندوز کاربرد داره با فلش می تونه خیلی کمک کنه ... این تقریبا همه دستوراتی هست که می تونید توی این جور فایل ها استفاده کنید ...
کد:
  [URL="http://www.ss64.com/nt/addusers.html"]ADDUSERS[/URL] Add or list users to/from a CSV file
  [URL="http://www.ss64.com/nt/arp.html"]ARP[/URL]      Address Resolution Protocol
~ [URL="http://www.ss64.com/nt/assoc.html"]ASSOC[/URL]    Change file extension associations
  [URL="http://www.ss64.com/nt/associate.html"]ASSOCIAT[/URL] One step file association
  [URL="http://www.ss64.com/nt/at.html"]AT[/URL]       Schedule a command to run at a later time
  [URL="http://www.ss64.com/nt/attrib.html"]ATTRIB[/URL]   Change file attributes
b
  [URL="http://www.ss64.com/nt/bootcfg.html"]BOOTCFG[/URL]  Edit Windows boot settings
  [URL="http://www.ss64.com/nt/browstat.html"]BROWSTAT[/URL] Get domain, browser and PDC info
c
  [URL="http://www.ss64.com/nt/cacls.html"]CACLS[/URL]    Change file permissions
~ [URL="http://www.ss64.com/nt/call.html"]CALL[/URL]     Call one batch program from another
~ [URL="http://www.ss64.com/nt/cd.html"]CD[/URL]       Change Directory - move to a specific Folder
  [URL="http://www.ss64.com/nt/change.html"]CHANGE[/URL]   Change Terminal Server Session properties
  [URL="http://www.ss64.com/nt/chkdsk.html"]CHKDSK[/URL]   Check Disk - check and repair disk problems
  [URL="http://www.ss64.com/nt/chkntfs.html"]CHKNTFS[/URL]  Check the NTFS file system
  [URL="http://www.ss64.com/nt/choice.html"]CHOICE[/URL]   Accept keyboard input to a batch file
  [URL="http://www.ss64.com/nt/cipher.html"]CIPHER[/URL]   Encrypt or Decrypt files/folders
  [URL="http://www.ss64.com/nt/cleanmgr.html"]CleanMgr[/URL] Automated cleanup of Temp files, recycle bin
  CLEARMEM Clear memory leaks
  [URL="http://www.ss64.com/nt/clip.html"]CLIP[/URL]     Copy STDIN to the Windows clipboard.
~ CLS      Clear the screen
  CLUSTER  Windows Clustering
  [URL="http://www.ss64.com/nt/cmd.html"]CMD[/URL]      Start a new CMD shell
~ [URL="http://www.ss64.com/nt/color.html"]COLOR[/URL]    Change colors of the CMD window
  [URL="http://www.ss64.com/nt/comp.html"]COMP[/URL]     Compare the contents of two files or sets of files
  COMPACT  Compress files or folders on an NTFS partition
  COMPRESS Compress individual files on an NTFS partition
  [URL="http://www.ss64.com/nt/con2prt.html"]CON2PRT[/URL]  Connect or disconnect a Printer
  CONVERT  Convert a FAT drive to NTFS.
~ [URL="http://www.ss64.com/nt/copy.html"]COPY[/URL]     Copy one or more files to another location
  [URL="http://www.ss64.com/nt/csccmd.html"]CSCcmd[/URL]   Client-side caching (Offline Files)
  [URL="http://www.ss64.com/nt/csvde.html"]CSVDE[/URL]    Import or Export Active Directory data 
d
~ [URL="http://www.ss64.com/nt/date.html"]DATE[/URL]     Display or set the date
  Dcomcnfg DCOM Configuration Utility
  [URL="http://www.ss64.com/nt/defrag.html"]DEFRAG[/URL]   Defragment hard drive
~ [URL="http://www.ss64.com/nt/del.html"]DEL[/URL]      Delete one or more files
  [URL="http://www.ss64.com/nt/delprof.html"]DELPROF[/URL]  Delete NT user profiles
  [URL="http://www.ss64.com/nt/del.html"]DELTREE[/URL]  Delete a folder and all subfolders
  [URL="http://support.microsoft.com/?kbid=311272"]DevCon[/URL]   Device Manager Command Line Utility 
~ [URL="http://www.ss64.com/nt/dir.html"]DIR[/URL]      Display a list of files and folders
  [URL="http://www.ss64.com/nt/diruse.html"]DIRUSE[/URL]   Display disk usage
  [URL="http://www.ss64.com/nt/diskcomp.html"]DISKCOMP[/URL] Compare the contents of two floppy disks
  [URL="http://www.ss64.com/nt/diskcopy.html"]DISKCOPY[/URL] Copy the contents of one floppy disk to another
  [URL="http://www.ss64.com/nt/diskpart.html"]DISKPART[/URL] Disk Administration
  DNSSTAT  DNS Statistics
  [URL="http://www.ss64.com/nt/doskey.html"]DOSKEY[/URL]   Edit command line, recall commands, and create macros
  [URL="http://www.ss64.com/nt/dsadd.html"]DSADD[/URL]    Add user (computer, group..) to active directory
  DSQUERY  List items in active directory
  [URL="http://www.ss64.com/nt/dsmod.html"]DSMOD[/URL]    Modify user (computer, group..) in active directory
e
~ [URL="http://www.ss64.com/nt/echo.html"]ECHO[/URL]     Display message on screen
~ [URL="http://www.ss64.com/nt/endlocal.html"]ENDLOCAL[/URL] End localisation of environment changes in a batch file
~ [URL="http://www.ss64.com/nt/del.html"]ERASE[/URL]    Delete one or more files
~ [URL="http://www.ss64.com/nt/exit.html"]EXIT[/URL]     Quit the current script/routine and set an errorlevel.
  [URL="http://www.ss64.com/nt/expand.html"]EXPAND[/URL]   Uncompress files
  [URL="http://www.ss64.com/nt/extract.html"]EXTRACT[/URL]  Uncompress CAB files
f
  [URL="http://www.ss64.com/nt/fc.html"]FC[/URL]       Compare two files
  [URL="http://www.ss64.com/nt/find.html"]FIND[/URL]     Search for a text string in a file
  [URL="http://www.ss64.com/nt/findstr.html"]FINDSTR[/URL]  Search for strings in files
~ [URL="http://www.ss64.com/nt/for_f.html"]FOR /F[/URL]   Loop command: against a set of files
~ [URL="http://www.ss64.com/nt/for_cmd.html"]FOR /F[/URL]   Loop command: against the results of another command
~ [URL="http://www.ss64.com/nt/for.html"]FOR[/URL]      Loop command: all options Files, Directory, List
  [URL="http://www.ss64.com/nt/forfiles.html"]FORFILES[/URL] Batch process multiple files
  [URL="http://www.ss64.com/nt/format.html"]FORMAT[/URL]   Format a disk
  FREEDISK Check free disk space (in bytes)
  [URL="http://www.ss64.com/nt/fsutil.html"]FSUTIL[/URL]   File and Volume utilities
  [URL="http://www.ss64.com/nt/ftp.html"]FTP[/URL]      File Transfer Protocol
~ [URL="http://www.ss64.com/nt/ftype.html"]FTYPE[/URL]    Display or modify file types used in file extension associations
g
  [URL="http://www.ss64.com/nt/global.html"]GLOBAL[/URL]   Display membership of global groups
~ [URL="http://www.ss64.com/nt/goto.html"]GOTO[/URL]     Direct a batch program to jump to a labelled line
h
  [URL="http://www.ss64.com/nt/help.html"]HELP[/URL]     Online Help
i
~ [URL="http://www.ss64.com/nt/if.html"]IF[/URL]       Conditionally perform a command
  [URL="http://www.ss64.com/nt/ifmember.html"]IFMEMBER[/URL] Is the current user in an NT Workgroup
  [URL="http://www.ss64.com/nt/ipconfig.html"]IPCONFIG[/URL] Configure IP
k
  [URL="http://www.ss64.com/nt/kill.html"]KILL[/URL]     Remove a program from memory
l
  [URL="http://www.ss64.com/nt/label.html"]LABEL[/URL]    Edit a disk label
  [URL="http://www.ss64.com/nt/local.html"]LOCAL[/URL]    Display membership of local groups
  [URL="http://www.ss64.com/nt/logevent.html"]LOGEVENT[/URL] Write text to the NT event viewer.
  [URL="http://www.ss64.com/nt/logoff.html"]LOGOFF[/URL]   Log a user off
  [URL="http://www.ss64.com/nt/logtime.html"]LOGTIME[/URL]  Log the date and time in a file
m
  [URL="http://www.ss64.com/nt/mapisend.html"]MAPISEND[/URL] Send email from the command line
  [URL="http://www.ss64.com/nt/mbsacli.html"]MBSAcli[/URL]  Baseline Security Analyzer. 
  [URL="http://www.ss64.com/nt/mem.html"]MEM[/URL]      Display memory usage
~ [URL="http://www.ss64.com/nt/md.html"]MD[/URL]       Create new folders
  [URL="http://www.ss64.com/nt/mklink.html"]MKLINK[/URL]   Create a symbolic link (linkd)
  [URL="http://www.ss64.com/nt/mode.html"]MODE[/URL]     Configure a system device
  [URL="http://www.ss64.com/nt/more.html"]MORE[/URL]     Display output, one screen at a time
  [URL="http://www.ss64.com/nt/mountvol.html"]MOUNTVOL[/URL] Manage a volume mount point
~ [URL="http://www.ss64.com/nt/move.html"]MOVE[/URL]     Move files from one folder to another
  [URL="http://www.ss64.com/nt/moveuser.html"]MOVEUSER[/URL] Move a user from one domain to another
  [URL="http://www.ss64.com/nt/msg.html"]MSG[/URL]      Send a message
  [URL="http://www.ss64.com/nt/msiexec.html"]MSIEXEC[/URL]  Microsoft Windows Installer
  [URL="http://www.ss64.com/nt/msinfo.html"]MSINFO[/URL]   Windows NT diagnostics
  [URL="http://www.ss64.com/nt/mstsc.html"]MSTSC[/URL]    Terminal Server Connection (Remote Desktop Protocol)
  [URL="http://www.ss64.com/nt/munge.html"]MUNGE[/URL]    Find and Replace text within file(s)
  [URL="http://www.ss64.com/nt/mv.html"]MV[/URL]       Copy in-use files
n
  [URL="http://www.ss64.com/nt/net.html"]NET[/URL]      Manage network resources
  [URL="http://www.ss64.com/nt/netdom.html"]NETDOM[/URL]   Domain Manager
  [URL="http://www.ss64.com/nt/netsh.html"]NETSH[/URL]    Configure network protocols
  [URL="http://www.ss64.com/nt/netsvc.html"]NETSVC[/URL]   Command-line Service Controller
  [URL="http://www.ss64.com/nt/nbtstat.html"]NBTSTAT[/URL]  Display networking statistics (NetBIOS over TCP/IP)
  [URL="http://www.ss64.com/nt/netstat.html"]NETSTAT[/URL]  Display networking statistics (TCP/IP)
  [URL="http://www.ss64.com/nt/now.html"]NOW[/URL]      Display the current Date and Time 
  [URL="http://www.ss64.com/nt/nslookup.html"]NSLOOKUP[/URL] Name server lookup
  [URL="http://www.ss64.com/nt/ntbackup.html"]NTBACKUP[/URL] Backup folders to tape
  [URL="http://www.ss64.com/nt/ntrights.html"]NTRIGHTS[/URL] Edit user account rights
p
~ [URL="http://www.ss64.com/nt/path.html"]PATH[/URL]     Display or set a search path for executable files
  [URL="http://www.ss64.com/nt/pathping.html"]PATHPING[/URL] Trace route plus network latency and packet loss
~ [URL="http://www.ss64.com/nt/pause.html"]PAUSE[/URL]    Suspend processing of a batch file and display a message
  [URL="http://www.ss64.com/nt/perms.html"]PERMS[/URL]    Show permissions for a user
  [URL="http://www.ss64.com/nt/monitor.html"]PERFMON[/URL]  Performance Monitor
  [URL="http://www.ss64.com/nt/ping.html"]PING[/URL]     Test a network connection
~ [URL="http://www.ss64.com/nt/popd.html"]POPD[/URL]     Restore the previous value of the current directory saved by PUSHD
  [URL="http://www.ss64.com/nt/portqry.html"]PORTQRY[/URL]  Display the status of ports and services
  [URL="http://www.ss64.com/nt/print.html"]PRINT[/URL]    Print a text file
  [URL="http://www.ss64.com/nt/prncnfg.html"]PRNCNFG[/URL]  Display, configure or rename a printer
  [URL="http://www.ss64.com/nt/prnmngr.html"]PRNMNGR[/URL]  Add, delete, list printers set the default printer
~ [URL="http://www.ss64.com/nt/prompt.html"]PROMPT[/URL]   Change the command prompt
  [URL="http://www.ss64.com/nt/psexec.html"]PsExec[/URL]     Execute process remotely
  [URL="http://www.ss64.com/nt/psfile.html"]PsFile[/URL]     Show files opened remotely
  [URL="http://www.ss64.com/nt/psgetsid.html"]PsGetSid[/URL]   Display the SID of a computer or a user
  [URL="http://www.ss64.com/nt/psinfo.html"]PsInfo[/URL]     List information about a system
  [URL="http://www.ss64.com/nt/pskill.html"]PsKill[/URL]     Kill processes by name or process ID
  [URL="http://www.ss64.com/nt/pslist.html"]PsList[/URL]     List detailed information about processes
  [URL="http://www.ss64.com/nt/psloggedon.html"]PsLoggedOn[/URL] Who's logged on (locally or via resource sharing)
  [URL="http://www.ss64.com/nt/psloglist.html"]PsLogList[/URL]  Event log records
  [URL="http://www.ss64.com/nt/pspasswd.html"]PsPasswd[/URL]   Change account password
  [URL="http://www.ss64.com/nt/psservice.html"]PsService[/URL]  View and control services
  [URL="http://www.ss64.com/nt/psshutdown.html"]PsShutdown[/URL] Shutdown or reboot a computer
  [URL="http://www.ss64.com/nt/pssuspend.html"]PsSuspend[/URL]  Suspend processes
~ [URL="http://www.ss64.com/nt/pushd.html"]PUSHD[/URL]    Save and then change the current directory
q
  [URL="http://www.ss64.com/nt/qgrep.html"]QGREP[/URL]    Search file(s) for lines that match a given pattern.
r
  [URL="http://www.ss64.com/nt/rasdial.html"]RASDIAL[/URL]  Manage RAS connections
  [URL="http://www.ss64.com/nt/rasphone.html"]RASPHONE[/URL] Manage RAS connections
  [URL="http://www.ss64.com/nt/recover.html"]RECOVER[/URL]  Recover a damaged file from a defective disk.
  [URL="http://www.ss64.com/nt/reg.html"]REG[/URL]      Registry: Read, Set, Export, Delete keys and values
  [URL="http://www.ss64.com/nt/regedit.html"]REGEDIT[/URL]  Import or export registry settings
  [URL="http://www.ss64.com/nt/regsvr32.html"]REGSVR32[/URL] Register or unregister a DLL
  [URL="http://support.microsoft.com/?kbid=245031"]REGINI[/URL]   Change Registry Permissions
~ [URL="http://www.ss64.com/nt/rem.html"]REM[/URL]      Record comments (remarks) in a batch file
~ [URL="http://www.ss64.com/nt/ren.html"]REN[/URL]      Rename a file or files.
  [URL="http://www.ss64.com/nt/replace.html"]REPLACE[/URL]  Replace or update one file with another
~ [URL="http://www.ss64.com/nt/rd.html"]RD[/URL]       Delete folder(s)
  [URL="http://www.ss64.com/nt/rmtshare.html"]RMTSHARE[/URL] Share a folder or a printer
  [URL="http://www.ss64.com/nt/robocopy.html"]ROBOCOPY[/URL] Robust File and Folder Copy
  [URL="http://www.ss64.com/nt/route.html"]ROUTE[/URL]    Manipulate network routing tables
  [URL="http://www.ss64.com/nt/runas.html"]RUNAS[/URL]    Execute a program under a different user account
  [URL="http://www.ss64.com/nt/rundll32.html"]RUNDLL32[/URL] Run a DLL command (add/remove print connections)
s
  [URL="http://www.ss64.com/nt/sc.html"]SC[/URL]       Service Control
  [URL="http://www.ss64.com/nt/schtasks.html"]SCHTASKS[/URL] Create or Edit Scheduled Tasks 
  [URL="http://www.ss64.com/nt/sclist.html"]SCLIST[/URL]   Display NT Services
~ [URL="http://www.ss64.com/nt/set.html"]SET[/URL]      Display, set, or remove environment variables
~ [URL="http://www.ss64.com/nt/setlocal.html"]SETLOCAL[/URL] Control the visibility of environment variables
  [URL="http://www.ss64.com/nt/setx.html"]SETX[/URL]     Set environment variables permanently 
  [URL="http://www.ss64.com/nt/share.html"]SHARE[/URL]    List or edit a file share or print share
~ [URL="http://www.ss64.com/nt/shift.html"]SHIFT[/URL]    Shift the position of replaceable parameters in a batch file
  [URL="http://www.ss64.com/nt/shortcut.html"]SHORTCUT[/URL] Create a windows shortcut (.LNK file)
  [URL="http://www.ss64.com/nt/showgrps.html"]SHOWGRPS[/URL] List the NT Workgroups a user has joined
  [URL="http://www.ss64.com/nt/showmbrs.html"]SHOWMBRS[/URL] List the Users who are members of a Workgroup
  [URL="http://www.ss64.com/nt/shutdown.html"]SHUTDOWN[/URL] Shutdown the computer
  [URL="http://www.ss64.com/nt/sleep.html"]SLEEP[/URL]    Wait for x seconds
  [URL="http://www.ss64.com/nt/soon.html"]SOON[/URL]     Schedule a command to run in the near future
  [URL="http://www.ss64.com/nt/sort.html"]SORT[/URL]     Sort input
~ [URL="http://www.ss64.com/nt/start.html"]START[/URL]    Start a program or command in a separate window.
  [URL="http://www.ss64.com/nt/su.html"]SU[/URL]       Switch User
  [URL="http://www.ss64.com/nt/subinacl.html"]SUBINACL[/URL] Edit file and folder Permissions, Ownership and Domain
  [URL="http://www.ss64.com/nt/subst.html"]SUBST[/URL]    Associate a path with a drive letter
  [URL="http://www.ss64.com/nt/systeminfo.html"]SYSTEMINFO[/URL] List system configuration
t
  [URL="http://www.ss64.com/nt/tasklist.html"]TASKLIST[/URL] List running applications and services
  TASKKILL Remove a running process from memory
~ [URL="http://www.ss64.com/nt/time.html"]TIME[/URL]     Display or set the system time
  [URL="http://www.ss64.com/nt/timeout.html"]TIMEOUT[/URL]  Delay processing of a batch file
~ [URL="http://www.ss64.com/nt/title.html"]TITLE[/URL]    Set the window title for a CMD.EXE session
  [URL="http://www.ss64.com/nt/touch.html"]TOUCH[/URL]    Change file timestamps    
  [URL="http://www.ss64.com/nt/tracert.html"]TRACERT[/URL]  Trace route to a remote host
  TREE     Graphical display of folder structure
~ [URL="http://www.ss64.com/nt/type.html"]TYPE[/URL]     Display the contents of a text file
u
  USRSTAT  List domain usernames and last login
v
~ [URL="http://www.ss64.com/nt/ver.html"]VER[/URL]      Display version information
~ [URL="http://www.ss64.com/nt/verify.html"]VERIFY[/URL]   Verify that files have been saved
~ [URL="http://www.ss64.com/nt/vol.html"]VOL[/URL]      Display a disk label
w
  [URL="http://www.ss64.com/nt/where.html"]WHERE[/URL]    Locate and display files in a directory tree
  [URL="http://www.ss64.com/nt/whoami.html"]WHOAMI[/URL]   Output the current UserName and domain
  [URL="http://www.ss64.com/nt/windiff.html"]WINDIFF[/URL]  Compare the contents of two files or sets of files
  [URL="http://www.ss64.com/nt/winmsd.html"]WINMSD[/URL]   Windows system diagnostics
  [URL="http://www.ss64.com/nt/winmsdp.html"]WINMSDP[/URL]  Windows system diagnostics II
  [URL="http://www.ss64.com/nt/wmic.html"]WMIC[/URL]     WMI Commands
x
  [URL="http://www.ss64.com/nt/xcacls.html"]XCACLS[/URL]   Change file permissions
  [URL="http://www.ss64.com/nt/xcopy.html"]XCOPY[/URL]    Copy files and folders
~ [URL="http://www.ss64.com/nt/rem.html"]::[/URL]       Comment / Remark
 

mohsensemsarpour

کاربر فعال
ممنون از راهنمایی خوبت دوست عزیز
راستی mdm هم همه اینا رو داره ...
البته mdm دیگه فلش نیست ...

موفق باشید ...
 

Avang2005

مدیر انجمن
سلام دوست من

لطف کنید تاپیک های قدیمی رو بالا نیارید

در چه مورد توضیح و مثال نیاز دارید ؟؟؟

موفق باشید
 

aliamel

کاربر فعال
یک مثال عملی که :

اولا نحوه استفاده از اون دستورات رو توسط فلش نشون بده .
و ثانیا توضیح مختصری در مورد محدودیت هایی که به واسطه استفاده از این دستورات مرتفع شده رو ارائه کنه.
 

Avang2005

مدیر انجمن
سلام دوست من

شما این کد ها رو مستقیم در فلش نمیتونید استفاده کنید کد رو باید تبدیل به فایل bat کنید و توسط فلش اجرا کنید

آموزش باز کردن فایل pdf در فلش توسط فایل bat رو جستجو کنید آموزش کاملشو گذاشتم

موفق باشید
 

جدیدترین ارسال ها

بالا