Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Monday, February 24, 2014

Often using CMD(Command prompt) code

Hi,

dir /s /b /o:gn

dir

XCOPY  C:\*.*  D:\NewFolder\   /S
//XCOPY makes the file copy from C: drive to D:\newFolder


192.168.0.162


dir  - list out directory list

dir *.exe
dir *.txt *.doc
dir /ad - List only the directories in the current directory.
dir /s - Lists the files in the directory that you are in and all sub directories after that directory,
dir /p - If the directory has a lot of files and you cannot read all the files as they scroll by - veritical
dir /w -  Horizontal view of dir
dir /s /w /p
dir /on - dir in sort by alphabet
dir /o-n - dir in reverece order
dir \ /s |find "i" |more - list all directories on the hard drive, one screen page at a time, and see the number of files in each directory and the amount of space each occupies.
dir > myfile.txt - Takes the output of dir and re-routes it to the file myfile.txt instead of outputting it to the screen.

Regards,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...