Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS???Ned to write a .bat file

Status
Not open for further replies.

Chuck712

Technical User
Joined
Mar 1, 2002
Messages
133
Location
US
I have an applications that I need to run when I am not here. I know that I can schedule it with the task scheduler, but I am having trouble remembering all of the dos commands. Any help? Here is what I want to do. I need to have the application open or run from it's location on a network drive. As soon as the application is open, it will run automatically. So is it
open "C:\nameofappliction.dtf" or "run C:\nameofapplication.dtf". None of the above work yet.
Thanks for any support
 
.dtf is a strange file extension. Is it executable? What exact steps to run this application manually?
 
The .dtf extension is for a IBM client access data transfer file. It should be an executable, but I might need to check with the IBM people and see. This is a new version. What I am trying to do is write a .bat file go to the application and open it. That would be what I would schedule to run.
 
You still need to answer my question about how you run this manually.

In windows, if you double click on "C:\nameofappliction.dtf", does it open and run and do everything it's supposed to do? In Windows Exlplorer, go to Folder Options, File Types tab, scroll through the list until you get to 'DTF' and post back with what is listed for 'open with'.
 
opens with Data Transfer To/From AS/400
 
OK, in that case, something like this might work in your batch file:

c:\path\datatranferprogramname.exe c:\path\whatever.dtf

Note the space between the opening application and the data/configuration file.
 
Thanks. That worked. But now there is a problem with the file itself, which I will have to figure out on this end.
That found the file and tried to open it, but it returned a corupt file error from the AS400. Thanks for all the help
 
You're welcome and good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top