SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jun 2005
    Location
    Texas
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Window\'s Declaration for Date & Time

    Hey Guys,
    Those of you who have read my previous post regarding connect function, here is the contnuation of that.
    I am trying to connect to a server and change data on that machine. I can get most of the stuff but the calender itself, which is defined as CalWndMain. When I try to access this object and get it's content, I get not found error.
    Has anyone done this before?

    THanks

  2. #2
    Member
    Join Date
    Jun 2005
    Location
    Texas
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window\'s Declaration for Date & Time

    Here are two correction:
    first paragraph: contanuation -> continuation
    second paragraph change data -> change date

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window\'s Declaration for Date & Time

    If you're just trying to change the date, why don't you just use SYS_Execute and pass the Date command instead of trying to drive the calendar's gui.
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  4. #4
    Member
    Join Date
    Jun 2005
    Location
    Texas
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window\'s Declaration for Date & Time

    Yeah, that is what I am doing now.
    so how do you send the date command?
    I did the following: Sys_Execute("Start cmd.exe"), it starts the command prompt.
    How do I send the keystrokes? I need to change and reset the date also exit

    THanks

  5. #5
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window\'s Declaration for Date & Time

    Don't invoke cmd.exe. Just do the following:

    SYS_Execute("date 08/09/2005")
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  6. #6
    Member
    Join Date
    Jun 2005
    Location
    Texas
    Posts
    58
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window\'s Declaration for Date & Time

    Cool, I think this will work for me. I can get current date manipulate it and then do the Sys command.

    THanks!

  7. #7
    Senior Member
    Join Date
    Sep 2001
    Location
    Dublin
    Posts
    232
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Window\'s Declaration for Date & Time

    Try...
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">// Changes the server date to a specific date based on a date been passed in

    void ChangeServerDateToASpecificDate (string sRealDate)
    HMACHINE server
    server = ConnectServer ()

    LIST OF STRING lsDirOut

    SYS_Execute(&quot;date {sRealDate}&quot;, lsDirOut)

    Print (&quot;Setting Server Date to {sRealDate}&quot</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
    ================
    Thanks,
    Tomás.

    Quis Custodiet ipsos custodes

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:04 AM.

Copyright BetaSoft Inc.