Tuesday, October 26, 2021

Auto Run Batch Commands at Client using CCBoot

 - First, Click option button on the top left corner. Then click >> button to open public.txt.

- You will see public.txt opened in Notepad. The usage is:

1) # means comment or unuse.

2) Run -service command - means run the command in NT service at client. For example, run -service ping 192.168.1.1


3) Run -startup command - means run the command in Startup menu at client. For example, run -startup c:\test.bat

4) Run -winlogon command - means run the command when the client goes to windows logon. For example, run -winlogon copy c:\test.txt d:\test.txt

5) -Skip update - means this command will not run when the client is in super client mode. 

- If the file is named"public.txt", all clients will implement it. If the file is named by specified IP address such as "192.168.1.101.txt", only the specified client (192.168.1.101) will automatically implement it. The above usages also apply for ip.txt.

Attention: If there are two files - "192.168.1.101.txt" and "public.txt", the client (192.168.1.101) will implement "192.168.1.101.txt" and"public.txt". The "192.168.1.101.txt" runs before"public.txt".

- The example below, run batch file when the client logon into windows and the file located in drive D:, the batch file will not run when client in super client mode.

run -winlogon -skipupdate start "" "D:\Reg\missingtray.bat"



No comments:

Post a Comment