Jump to content

VBS script help


Recommended Posts

Guest UnknownTBeast
Posted

Is there a script that I could use to find the system time and reduce it by

16 minutes and display it in a MSGBOX as "The current time is..."

I don't have the rights to change the time on the computer so this seems

like the best way.

  • Replies 3
  • Created
  • Last Reply
Guest Andrew E.
Posted

RE: VBS script help

 

For windows scripts,go to TechNet at microsoft,locate the script center,

locate the library,a script might already be made.

 

"UnknownTBeast" wrote:

> Is there a script that I could use to find the system time and reduce it by

> 16 minutes and display it in a MSGBOX as "The current time is..."

> I don't have the rights to change the time on the computer so this seems

> like the best way.

Guest Ramesh Srinivasan, MS-MVP
Posted

Re: VBS script help

 

DateAdd Function:

http://msdn.microsoft.com/en-us/library/cb7z8yf9(VS.85).aspx

 

MsgBox DateAdd("n", -16, Now)

 

--

Regards,

 

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]

The Winhelponline Blog http://www.winhelponline.com/blog

 

 

"UnknownTBeast" <UnknownTBeast@discussions.microsoft.com> wrote in message

news:131A3CCC-4A6F-4B06-B5F9-67841A3309B9@microsoft.com...

> Is there a script that I could use to find the system time and reduce it

> by

> 16 minutes and display it in a MSGBOX as "The current time is..."

> I don't have the rights to change the time on the computer so this seems

> like the best way.

Guest Pegasus \(MVP\)
Posted

Re: VBS script help

 

 

"UnknownTBeast" <UnknownTBeast@discussions.microsoft.com> wrote in message

news:131A3CCC-4A6F-4B06-B5F9-67841A3309B9@microsoft.com...

> Is there a script that I could use to find the system time and reduce it

> by

> 16 minutes and display it in a MSGBOX as "The current time is..."

> I don't have the rights to change the time on the computer so this seems

> like the best way.

 

Performing this task with a script won't get you around the permissions

issue. Ask your system administrator to give you sufficient rights to change

the time.


×
×
  • Create New...