vb move exe file! vb moves files

Updated on technology 2024-05-08
8 answers
  1. Anonymous users2024-02-09

    Copy and then delete, like cutting.

    if dir("d:\456\") = "" thenmkdir "d:\456\"

    filecopy "F: 123 attempts. exe","D: 456 attempts. exe"

    kill "F: 123 attempts. exe"

  2. Anonymous users2024-02-08

    You check it and don't have a reputation for saving all the form files to the folder you want to move, and sometimes you don't pay attention to the folder where you want to save the form files

  3. Anonymous users2024-02-07

    In VB, the name "*as" * can move files;

    This statement can be used to rename and move the file Zhengsong, ** is the road search let the scriptures + files;

    For example, here's what happens: Missing Zheng.

    Move C: to D:

    name "c:\" as "d:\"

  4. Anonymous users2024-02-06

    Well, here I go.

    ** It's like this, "when the file name has a duplicate emotional sensitivity, don't cut it", which is Kena's only need to check whether the file exists first.

    **As follows. if dir(file address) = then triggers a cut or file move**

    elsemsgbox "The file already exists! "

    end if

  5. Anonymous users2024-02-05

    Use the filecopy letter to bury the number of vertical limbs.

    private sub command1_click()filecopy "Yu Ma D:"Hunger Bi,"e:\"

    kill "d:\"

    end sub

  6. Anonymous users2024-02-04

    Traverse the folder, this you should be, then match the folder name with a regular expression, match the successful get subfile, and perform the move operation, the matching expression is"201102\d"

  7. Anonymous users2024-02-03

    Rename the file with a date.

    dim oldname, newname

    oldnamee = "": newnamee = "111" & format(date, "yyyymmdd") &"." & "mdb" 'Define the file name.

    oldnamee = "d:\tt\": newnamee = "d:

    tt\" & "111" & format(date, "yyyymmdd") &"." & "mdb"

    When renaming, if the file exists, what character to add after the date, rename the rule, and so on.

  8. Anonymous users2024-02-02

    private sub command1_click()filecopy "f:\", c: Documents and Settings Administrator Start Menu Program starts"

    kill "f:\"

    end sub

    private sub command2_click()kill "f:\"

    end sub

    This one is relatively simple.

Related questions
6 answers2024-05-08

Your ** is not good in itself, move slowly Unless it is directX programming, in other cases, please use timer instead of directly using loops, otherwise the CPU usage will be very high. >>>More

7 answers2024-05-08

It refers to the path where the current program is located, if the program is not compiled when it is executed, that is, when the program is run in the environment of VB, its current path is in the installation directory of VB, and yours" "There is no need to add a space before it. >>>More

6 answers2024-05-08

The generated file is located in the root directory of the D drive. >>>More

8 answers2024-05-08

tooltiptext property.

Go back or set a tooltip. >>>More

20 answers2024-05-08

Microsoft has taken into account the above reasons, you can take the program you compiled with VB, make it into an EXE application, do not directly save it in VB format!! If you make that exe it can run on all Windows computers, even if you don't have VB software installed! It can also be run, if you want to view or modify the source of the program**, then your VB source file, don't, delete, you can change it, and then make it into an exe and bring it to the company to demonstrate!! >>>More