Modify the system time, run EXE and then restore the time in VB

Updated on society 2024-04-20
16 answers
  1. Anonymous users2024-02-08

    Add a global variable: d as string

    Run the program at the beginning:

    d = date

    shell "cmd /c date 2008-05-05" 'Modify the system time.

    Run before the end of the program:

    shell "cmd /c date " & d 'Restore system time.

  2. Anonymous users2024-02-07

    Similar to the idea I did before, the time to read the company's server is refreshed every second.

  3. Anonymous users2024-02-06

    What do you need to record for this check-in, and where do you record it?

  4. Anonymous users2024-02-05

    The easiest way to do this is to use the system date:

    private sub form_loadif date>datevalue(md) then msgbox "The beta period has passed",48:end

    end sub

    where md is your specified date, e.g. md="2011-12-31"

    The biggest bug with this method is that the program will continue to run after the system date is modified.

  5. Anonymous users2024-02-04

    Open it and make sure that if the current date is not equal to the date you requested, then exit sub will do.

  6. Anonymous users2024-02-03

    Check the current time in the program startup function, and if it expires, it will be sent directly

  7. Anonymous users2024-02-02

    Is this date written in the program, or is it required to be flexible?

    If you need flexible control, you can write the expiration time to a file (e.g. ini), and then encrypt it when you write it, otherwise others can change the time at will.

    If it's dead, it's easier, in the main() of the program at the beginning to directly determine whether the current time is less than the specified time, if the condition is not true, directly end

    I won't write about this, this should be easy.

  8. Anonymous users2024-02-01

    Here's an idea.

    First, change the system time before modifying the file Hehe, did it suddenly dawn on me, the time was changed to the modification time of your previous file.

    Second, change the time back after the modification, because you use VB, so you basically don't need to add the time difference. Directly in the program, change it to the time before the change.

    Or, you write down the time when the original file was modified, then use vb to adjust the system time, adjust it to the time you wrote down, modify the file, and then call back the time. Hehe.

  9. Anonymous users2024-01-31

    Method: Click "Project" - "Project Properties" - "Generate" - modify the version number and number of modifications.

    In the production exe file, click Properties Modify.

  10. Anonymous users2024-01-30

    What does it mean to always copy things with VB?

  11. Anonymous users2024-01-29

    VB couldn't be easier to change the system time.

    One ** can be realized.

    datedatevalue("The date you want to amend"Note that the date entered is formatted.

    Let's say you want to change it to August 8, 8888.

    It's date

    datevalue("8888-8-8"Do not write a date

    datevalue("August 8, 8888")

  12. Anonymous users2024-01-28

    When installing the freezing point, use the command to slow down the installation of the mu line, with the number of tan wheels to disturb the forest. For example, install allowtimechange pwd=123 freeze=c:,d:,e:

  13. Anonymous users2024-01-27

    VBP file, that is, engineering file. Don't tell me that there are only exe files, no source**.

  14. Anonymous users2024-01-26

    Are you sure you debug the bug? First debug to see if there are any errors and then generate one to see if you have to remove it into Mr. exe.

  15. Anonymous users2024-01-25

    Generally, you open a project file.

    The simple procedure is to open the bas directly

  16. Anonymous users2024-01-24

    ping -n here to write the time "nul".

    For example: ping -n 10>nul

    Meaning: Execute the following ** after an interval of 10 seconds.

Related questions
9 answers2024-04-20

If we want to formulate a system that can be used in production, we can take the way of small rules and regulations and large systems, that is, we can sort out one or two small rules and regulations promulgated on a daily basis every six months or a year. >>>More

10 answers2024-04-20

If I want to change the system time of the computer accurately, I can remove the option of the computer system time follows the time of the web page. Here's how to do it, you can tap the time in the bottom right corner of the screen. After double-clicking, an option will appear, whether to follow the network time or not. >>>More

8 answers2024-04-20

You can jump, for example, if there are leaves on a tree in front of you, you can take a run-up and then hook the leaves with your hands (it's very effective, that's how I made it).

7 answers2024-04-20

Yuntong 105 (Zhongyuan Hotel - Beijing University of Finance). >>>More

6 answers2024-04-20

After reading the previous question, I simply didn't verify whether the method I copied was right or wrong! Just send it over! Now to give you a real way to operate! 100% success! >>>More