|
Answer» hi all,
i WANT to open excel file (via batch file) , but when it open, cmd command prompt (black screen) opened with it, so how can i close the cmd command prompt in the batch file with keep excel file opened?
any idea... Thanks after you've open the excel file from your batch, PUT 'exit' at the end.
That will close the prompt window.
hope it helps.i tried that, and i tried to kill cmd.exe process, but it stops when open the file, and didn't excute any statement after open the file command untill the file closedpost your batch file, and I'll have a LOOK for you.it's very simple
if exist "TS.xls" "TS.xls"
if it exist, it opens it and open the command prompt
Thanks for helpYou should read the start HELP by typing start/? There you will see that the /B switch does this: "Start application without creating a new window."
Try this:
Code: [Select]if exist "TS.xls" start "" "TS.xls" /B it works, thanks you
|