Saved Bookmarks
| 1. |
Solve : I need help again with a script file... ANYONE STILL UP TO HELP ME?????? |
|
Answer» I am trying to get this script to run. I need to add the "c u" after the "IMP71MR1.BAT" file. Please tell me what am i doing wrong? It is very late here but i need to get this running if i can... I would appreciate any help... Thanks... The batch file below is what i cam trying to get running... @echo off This will take some please be patient! pause dir c:\cognos\IMP71MR1.BAT call c:\cognos\IMP71MR1.BAT c u EXIT personally I'd do; @echo off This will take some please be patient! pause>nul start "c:\cognos\IMP71MR1.BAT c u" EXIT give it a try.... Thank you for helping me... Will this work even if the original file is only "c:\cognos\IMP71MR1.BAT"? I need to add the "C U" to the end of the "c:\cognos\IMP71MR1.BAT" for it to run correctly. Let me KNOW... I will try this... yeah it will still work. The only thing you missed was the " " around the batch file path and arguments. not USING them causes the batch file to stop reading that line at '.bat' hence why it's not doing the 'c u' bit your after. It gave me an error.... 'This' is not a recognized as an internal or external command, operable program or batch file? post your code.... This is all i am using... I just want to run this batch file. So i am trying to make a batch file to run another batch file. This is the file i am trying to create... @echo off This will take some please be patient! pause dir c:\cognos\IMP71MR1.BAT call c:\cognos\IMP71MR1.BAT c u EXIT This is the batch file that i am running: @echo off if "%2"=="" GOTO ERROR1_PARM set InstType=Invalid if /I "%2"=="U" set InstType=User if /I "%2"=="A" set InstType=Admin if "%InstType%"=="Invalid" goto ERROR1_PARM TITLE Cognos Impromptu v7.1 MR1 %InstType% Installation cls rem rem As this procedure was designed to be run from the rem network login script, no prompting for user reponse rem is required by this batch file. rem rem cscript %1:\COGNOS\IMP71MR1.vbs //nologo %1 %2 %3 if errorlevel 1 goto ERROR2_VBS goto end REM =================================== :ERROR1_PARM echo. echo %0: echo Error invalid/missing parameters echo Drive LETTER of EPETUTIL directory echo Installation type (U)ser or (A)dministrator. echo. echo Example: echo %0 M A echo. PAUSE goto end rem :ERROR2_VBS echo. echo %0: Error unable to execute Impromptu v7.1 MR1 installation script. echo. PAUSE :END Can you understand what i am trying to do now? change the first batch file to the following..... @echo off This will take some please be patient! pause dir c:\cognos\IMP71MR1.BAT start "c:\cognos\IMP71MR1.BAT c u" EXIT I am still getting the above mentioned error... However... the systems i will be running this batch file on is a XP system... I am at home running a VISTA Pro machine... does this make a difference? This batch is supposed to be copied to the C\:cognos\ dir and then i am suppose to go to the "START" in windows and then go to the "RUN" and then type in C:\cognos\IMP71MR1.BAT c u Everytime... i wanted to get around doing this for installing on 90 MACHINES... It will take forever so i tryed to make a script to do it for me... Is this possible? arh........ change the first batch file to the following..... @echo off echo This will take some please be patient! pause dir c:\cognos\IMP71MR1.BAT start "c:\cognos\IMP71MR1.BAT c u" EXIT we was missing the echo INFRONT of the 'this will take some time please be patient!' !!!!!! try it with echo....(like above) Quote from: gmixx on April 03, 2008, 04:14:39 AM
sorry I'm confused now.... you want this to run on 90 machines??? that is posiable, but I'd sugest getting it running on one first. then you know your code is good. make the change i sugested (add the echo command to the 'This will take some please be patient!' line) and post back.Ok, we are getting somewhere... Now it stops at the C:\users\me\desktop> ?? Why is it stopping there? So i need to add something? Hahaha, I am sorry to confuse you... AFTER i get this running correctly... I will take it tomorrow and load 90 machines... not tonight...LOL |
|