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,

How to get calenderID in Dynamic AX 2012

Hi,

Pass the worker table recID to hcmEmployment and get hcmEmployment  recID to WorkCalenderEmployement recID
In that WorkCalenderEmployement table you can find the CalenderId
hcmEmployment           = HcmEmployment::getActiveEmploymentsByWorker(HcmWorker.RecId);
workCalendarEmployment  = workCalendarEmployment::findByEmploymentRecId(hcmEmployment.RecId);
return  workCalendarEmployment.CalendarId;

regards,

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...