Posts

How to Change Permission of Files in Command Prompt

Navigate to the directory in which you want to apply the new permissions. First Take ownership of files using the following command takeown /f  *  /R /f  *    --- Implies all files in the current path / R    ---- Recursive action Then change the Permission using the following command cacls  *  /T  /e  /p  ramit:f /T is for recussive

sftp - Window Batch Script

Use psftp command cd /d  E:\LocationOf_psftp.exe psftp userName@HostName.Domain -pw "Pa$$W@rd" -b transferScriptName.scrt exit -----transferScriptName.scrt------------  lcd G:\LocationWhereYouWantToDownloadUrFilesOnUrLocalServer. mget dir1/dir2/Filename_*.txt quit