[VB6] File date and time stamp. How to read into variable?

Click For Summary
To create a VB6 program that tracks the date and time a file is created and plots this data in a graph, the FileDateTime function can be used to retrieve the file's date and time stamp. The syntax is FileDateTime("C:\Somefile.txt"). For moving files between folders, the VB6 command to use is the Name statement, which allows for file relocation. The discussion emphasizes a preference for VB6 over modern programming languages like VB.NET or C#.
cavemen
Messages
42
Reaction score
0
Hello. I am trying to create a VB6 program that would keep track of date and time when a new file was created. And and plot it in a graph.

What VB6 command can allow me to convert file date and time stamp into a variable?
What command can help me move a file from one folder to the other?

Yes I am using the Visual Basic 6. It is simple.
No VB.NET, no C# no modern complex B.S.
 
Technology news on Phys.org
FileDateTime("C:\Somefile.txt")

My.Computer.FileSystem.MoveFile("C:\Somefile.txt", "C:\hello\Somefile.txt")
 
thank you for helping
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

Replies
81
Views
7K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 5 ·
Replies
5
Views
6K
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K