Rgd Window Batch File Command

baoky chen

Below is my batch code

:START
echo RUNNING START
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://www.google.com
ping -n 30 127.0.0.1 > nul
echo RUNNING DONE 30 secs
taskkill /im chrome.exe
echo KILL CHROME
GOTO START

I trying to lets say run google.com every 30 seconds using my window batch file and load it at window cmd prompt by

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>cd Desktop

C:\Users\Administrator\Desktop>chrome.bat

But problem is on the part where it load line 3

which is

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://www.google.com

The command prompt will stuck and hang, and not execute the next line.

What i want to achieve is

LOOP every 30 seconds, loading a specific page e.g google.com

I not ddosing Google.com or what, I Just actually want setup a simple cron job to load 1 of my page every 30 seconds using google as example in this case

mihai_mandis

Try to use

start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://www.google.com
instead of 
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://www.google.com

this will start a new processes and let your batch continue. and

taskkill /F /im chrome.exe

It works either cases for me.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

keep command line window open when running scheduled task executing batch file

From Dev

"if not exist" command in batch file

From Dev

Command window closing while executing gradle command from batch file

From Dev

Reg command in batch file

From Dev

Batch file "for" command

From Dev

Is there a window opacity command in Batch?

From Dev

Command output to a file with batch scripting

From Dev

Issue with batch script with vbscript command in the batch file

From Dev

Close command prompt window after batch file execution

From Dev

Batch file - check if command is available

From Dev

Using start command to open new window with /V:ON enabled and also run a batch file

From Dev

put the find command in a batch file

From Dev

"start" command in .bat batch file

From Dev

Set window defaults when opening a command-prompt from a batch file using different creds via RunAs

From Dev

Batch file FOR command skipping lines

From Dev

Batch file wait for entered command

From Dev

Batch file command not working

From Dev

Need Batch File to close a Window.. NOT the batch window

From Dev

"if not exist" command in batch file

From Dev

Batch File Choice Command Loops

From Dev

Can I make a batch file that sets up a https proxy for IE without showing command line or window?

From Dev

Is there a command for batch codes to change to another specific window?

From Dev

How can I tell whether a batch file was run from a command window?

From Dev

How to run a batch file without launching a “command window”?

From Dev

Batch file, The syntax of the command is incorrect

From Dev

Command clears environment in batch file

From Dev

batch - run command series on new window

From Dev

Batch File: If command is not working

From Dev

Batch - if (file) exist command?

Related Related

  1. 1

    keep command line window open when running scheduled task executing batch file

  2. 2

    "if not exist" command in batch file

  3. 3

    Command window closing while executing gradle command from batch file

  4. 4

    Reg command in batch file

  5. 5

    Batch file "for" command

  6. 6

    Is there a window opacity command in Batch?

  7. 7

    Command output to a file with batch scripting

  8. 8

    Issue with batch script with vbscript command in the batch file

  9. 9

    Close command prompt window after batch file execution

  10. 10

    Batch file - check if command is available

  11. 11

    Using start command to open new window with /V:ON enabled and also run a batch file

  12. 12

    put the find command in a batch file

  13. 13

    "start" command in .bat batch file

  14. 14

    Set window defaults when opening a command-prompt from a batch file using different creds via RunAs

  15. 15

    Batch file FOR command skipping lines

  16. 16

    Batch file wait for entered command

  17. 17

    Batch file command not working

  18. 18

    Need Batch File to close a Window.. NOT the batch window

  19. 19

    "if not exist" command in batch file

  20. 20

    Batch File Choice Command Loops

  21. 21

    Can I make a batch file that sets up a https proxy for IE without showing command line or window?

  22. 22

    Is there a command for batch codes to change to another specific window?

  23. 23

    How can I tell whether a batch file was run from a command window?

  24. 24

    How to run a batch file without launching a “command window”?

  25. 25

    Batch file, The syntax of the command is incorrect

  26. 26

    Command clears environment in batch file

  27. 27

    batch - run command series on new window

  28. 28

    Batch File: If command is not working

  29. 29

    Batch - if (file) exist command?

HotTag

Archive