- Posts: 177
- Thank you received: 0
AT command to run a batch file
18 years 8 months ago #13639
by monsky
AT command to run a batch file was created by monsky
hey guys,
ive been trying to run a batch file using the AT command but when the scheduled time came when it supposed to run the batch file. it wont run. but when i run that batch file manually, interactively, there's no problem at all. do i missing something. i am using xp.
tnx again in advance
ive been trying to run a batch file using the AT command but when the scheduled time came when it supposed to run the batch file. it wont run. but when i run that batch file manually, interactively, there's no problem at all. do i missing something. i am using xp.
tnx again in advance
18 years 8 months ago #13640
by TheBishop
Replied by TheBishop on topic Batch File
I've seen this before and it's usually inexplicable.
It might be due to where your batch file is on your system - try putting it somewhere generic like the Windows directory and making sure you specify the full path to it in your AT entry.
Something else you could try is making an AT entry to run something benign like wordpad.exe from your chosen location as a test tool.
Or the third possibility is that there is something in your batch file that will run interactively in a 'proper' command prompt but not via the AT command. To get round that, use the AT command to explicitly start another command shell then run your batch file in that. Look up 'cmd' in the Windows XP help
It might be due to where your batch file is on your system - try putting it somewhere generic like the Windows directory and making sure you specify the full path to it in your AT entry.
Something else you could try is making an AT entry to run something benign like wordpad.exe from your chosen location as a test tool.
Or the third possibility is that there is something in your batch file that will run interactively in a 'proper' command prompt but not via the AT command. To get round that, use the AT command to explicitly start another command shell then run your batch file in that. Look up 'cmd' in the Windows XP help
Time to create page: 0.117 seconds