Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
DOS batch PIF connect to server
FIRST="OURSERVER" SECOND="OURUSER" THIRD="PASSWORD" ETC="ANOTHERVALUE"Then run the batch file from WinBatch in the following way. You can change the RunWait to RunHideWait after you are certain this batch file works well.
RunWait("C:\PATH\BATFILE.BAT", "%FIRST% %SECOND% %THIRD% %ETC%")Next, write a Windows PIF file to control how your DOS batch file is handled by Windows. See below for suggested PIF settings. Use the Windows PIFEDIT.EXE program located in your Windows 3.1/3.11 directory.
You MUST give your PIF file the same root filename as your DOS BAT filename. If you do this, Windows will check the PIF file before running the DOS batch file and will use the settings in the PIF. You do not have to run the PIF file from WinBatch directly, but if you do, it will work just fine.
Use the following settings in your PIF file:
Check the "Close Window on Exit" box. Set the "Display Usage: Windowed" radio button. The other settings can be left at their default values.Next, give the PIF file the name of your DOS batch file and save it in your Windows directory.
If all goes well, you can change the function RunWait() to RunHideWait(). Then, run your WinBatch script and make sure it works as intended.
Article ID: W13476
Filename: Connect to Servers via DOS batch files.txt
File Created: 1999:04:15:16:54:16
Last Updated: 1999:04:15:16:54:16