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

Click For Summary
SUMMARY

The discussion focuses on using Visual Basic 6 (VB6) to track the creation date and time of files and move them between directories. The command FileDateTime("C:\Somefile.txt") retrieves the file's date and time stamp, while My.Computer.FileSystem.MoveFile("C:\Somefile.txt", "C:\hello\Somefile.txt") facilitates file movement. Participants emphasize the simplicity of VB6 over modern programming languages like VB.NET and C#.

PREREQUISITES
  • Familiarity with Visual Basic 6 (VB6) programming
  • Understanding of file handling in VB6
  • Basic knowledge of file system paths
  • Experience with date and time functions in programming
NEXT STEPS
  • Explore advanced file handling techniques in VB6
  • Learn about error handling in VB6 file operations
  • Investigate graphical plotting libraries compatible with VB6
  • Research best practices for managing file paths in VB6 applications
USEFUL FOR

VB6 developers, programmers maintaining legacy systems, and anyone interested in file manipulation and date tracking within Visual Basic 6 applications.

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
 

Similar threads

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