how to start a bat file on remote computer when i logged on it using rdp connection?


i have bat file on remote computer. when l use mstsc.exe log on want run bat file .

the program , file path textbox "cmd /c e:\rdp\rdp_test\tt.bat"

the bat file tt.bat ,and content "ping 8.8.8.8 >> e:\rdp\rdp_test\ping.txt".

but when log on remote computer, ping.txt can not found !

what should ? ps: client computer , remote computer win7.

hi,

but when log on remote computer, ping.txt can not found !

i suggest create new folder ping.txt, share folder users need run .bat file, please remember edit permissions under security tab.

you can configure .bat file logon script specific users.

assign user logon scripts

https://technet.microsoft.com/en-us/library/cc731684.aspx

best regards,

amy


please remember mark replies answers if , un-mark them if provide no help. if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  Remote Desktop Services (Terminal Services)



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client