Forum

Change WindowsMedia...
 
Notifications
Clear all

Change WindowsMediaPlayer mode, when file played is finished

19 Posts
3 Users
0 Reactions
236 Views
(@vicboa)
Posts: 9
Active Member
Topic starter
 

It would also be a valid option! but I think it can generate a little delay between the playslist play

 
Posted : 17/08/2018 10:48 pm
(@sunnykow)
Posts: 1417
Noble Member
 

You can try this code to delete the files.

Sub DeletePlayList()
On Error Resume Next
Kill "C:UsersUserNameMusicPlaylistsMyPlayList*.wpl"
On Error GoTo 0
End Sub

 
Posted : 18/08/2018 12:38 am
(@vicboa)
Posts: 9
Active Member
Topic starter
 

That code works correctly, but, only in my computer. When a teacher will try to run in your system, it will dont run because the folder is different.
Im thinking in a code to obtain the windows user name to replace the UserName automatically in each case.

 
Posted : 19/08/2018 4:38 pm
(@sunnykow)
Posts: 1417
Noble Member
 

You can try this to get the user name

Sub DeletePlayList()

MyName=environ("username")

On Error Resume Next
Kill "C:Users" & MyName & "MusicPlaylistsMyPlayList*.wpl"
On Error GoTo 0
End Sub

 
Posted : 20/08/2018 10:56 am
Page 2 / 2
Share: