You are not logged in.

#1 27 Mar 2014 21:34

rgiljohann
New Member
Registered: 27 Mar 2014
Posts: 1

Delay CMD "Start" for x seconds

I am very new to using CMD. I entered in: start "" "C:\Users\rgiljohann\Desktop\Connection String.xlsx" into notepad and saved as a .bat to run through task scheduler. Is there a way to delay the opening of that start for 120 seconds? I see ping and timout all over the place, but I do not know how to use them in association since I am such a novice.

Offline

#2 28 Mar 2014 02:21

foxidrive
Member
Registered: 04 Apr 2013
Posts: 339

Re: Delay CMD "Start" for x seconds

This is one option for Windows after XP.

@echo off
timeout /t 120 /nobreak
start "" "C:\Users\rgiljohann\Desktop\Connection String.xlsx"

Offline

#3 28 Mar 2014 08:53

bluesxman
Member
From: UK
Registered: 29 Dec 2006
Posts: 1,129

Re: Delay CMD "Start" for x seconds

roll Oh man, how many years have I been writing boilerplate ping 127.1 -n x >nul routines without needing to?  Curse you Microsoft and your incomplete "help" documentation!  Every day is a school day, thanks foxidrive.


cmd | *sh | ruby | chef

Offline

Board footer

Powered by