1.

Solve : looks like impossible for me may be nothing for you???

Answer»

I wanted  to allow people to view my files only once. A brillant guy suggested me to to this
1. Create a directory (folder) c:\test
2. Within that folder create a text file or copy in any file you desire - for this example use newtext.txt
3. Now use the file's properties to make newtext.txt hidden and read only
4. Now that the test file is present create a simple batch file called newtext.bat
5. newtext.bat only needs to contain these lines
notepad newtext.txt
attrib -h -r newtext.txt
del newtext.txt

works perfect for txt file but i DONT know how to do it for video (avi files). Computer is out of my medical field so simple solution like the ONE before will be appreciated. Thanking in advance.
P.S main problem is how to give command to open video file like notepad is opening there newtext.txt.

You need to use a player to play the video file.  This works using VLC to play the video file:

Code: [Select]"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" myvideo.mp4
attrib -h -r myvideo.mp4
del myvideo.mp4
This method will work on your machine, is that where they would be viewing the video from?  If they are using their own machine and accessing a shared folder on your machine then it will not work unless they have VLC installed in the same location as you do on your machine. Quote from: docdipesh on March 22, 2015, 08:03:48 AM

I wanted  to allow people to view my files only once.

5. newtext.bat only needs to contain these lines
notepad newtext.txt
attrib -h -r newtext.txt
del newtext.txt

works perfect for txt file

What stops them from saving the document again?

 Thank you strollin

but still does not work
you can see it
https://www.dropbox.com/s/u1hddm1liwr99h1/did%20not%20work.avi?dl=0It may help if the Original Poster can clarify some details.
1. Is in desirable to prevent users from seeing video again? Why?
2. Does  the video loose value over a period of time?
3. How many users are involved? Do they have used Windows based machines?
4. Is you service to be used over the world wide wide or just a local campus?
5. Have your tried  using media players to help control your presentations?
6. Are you familiar with he concept of a Podcast?
The link below is about Apple podcast.
Apple - iTunes - Podcasts - FAQs: For Podcast Makers
Just a suggestion. 


It looked like in the video you renamed the video file to myvideo.mp4.mp4 instead of myvideo.mp4.Strollin, thank you but it still does not work
https://www.dropbox.com/s/18g9fjyo0yb898j/still%20does%20not%20work.avi?dl=0Thank you geek,

1. I want my students to view my lecture note  only once .
2. yes video loses value over the period of time.
3. Students may be around 100 and all of them have only windows based or android approach.
4.Service  now is just over the campus locally . Hopefully in future in broader arena.
5.using media players to control presentation would be great but I have no idea on using it.
6. I am not familiar with the concept of a Podcast. I think it is only for IOS if i am not wrong. All of us dont have IOS based device.
Thanking you so much for the time.
Great day.Allow me to INTRODUCE thou to WordPress.
WordPress is one of a number of high level presentation platforms used in the Internet. In is platform  for Text, Audio, Video and an y mix. It is a structure that holds together lectures and documents that can be related or not. It can have categorizes, archives and feature pages.  Or it can be very plain.

It supports RSS feeds. I mentioned earlier, RSS is a type of podcast the uses e-mail to notify  clients of new materiel. It is server base and requires no specific OS. Users can have Windows, Mac or Android systems.

For campus use, your own computer could be the server. However, from my own experience, it is easier to just rent chap web space and use the automatic install features of the web site.

Most, almost all, web hosting cervices give  WordPress personal for no extra cost.
This is my WordPress Blog. As  you can see, it is rather plain.
http://geek9pm.com/wp_k9/

More  about using WordPress with RSS can be found at:
https://en.support.wordpress.com/feeds/

Here is a nice lecture series done with WordPress and video clips.
https://flippedemclassroom.wordpress.com/

http://WordPress.com gives commercial help for professionals.
http://WordPress.org is non-profit for personal users.
That is my best recommendation. 
Quote from: Geek-9pm on March 22, 2015, 09:40:38 PM
RSS is a type of podcast the uses e-mail to notify  clients of new materiel.

RSS doesn't use E-mail. Quote from: docdipesh on March 22, 2015, 08:44:12 PM
6. I am not familiar with the concept of a Podcast. I think it is only for IOS if i am not wrong. All of us dont have IOS based device.
Well my Zune must be using MAGIC these PAST 9 years to listen to podcasts.

I swear this question has been asked before on the forums. It is not really something you would do with a batch file. Quote from: BC_Programmer on March 23, 2015, 03:04:16 PM
RSS doesn't use E-mail.
I have been corrected. 
Notifications are sent to the  browser.
http://rss-tutorial.com/rss-how-does-it-work.htm
Quote
Summary
This is how RSS works:
    A website or a blog creates an RSS Feed. Many Blog services automatically create RSS Feeds. For Websites, RSS Feeds can be created manually or with software.
    The RSS Feed that is created is an XML file that lives on an Internet server. There are now hundreds of thousands of RSS Feeds sitting on Internet servers waiting patiently for an RSS Reader to subscribe to them.
    The RSS Feed Reader reads the RSS Feed file and displays it. The RSS Reader displays only new items from the RSS Feed.
RSS is definitely useful though. I'm not sure it would do exactly what the OP wants. However if they want to tightly control their content they would be better served to do so via a website. Even just preventing any single IP from viewing the video more than once would likely be better than trying to rely on some obfuscation trickery using hidden files and batch scripts. Just copying the folder it is in would workaround the trickery in this case.

Realistically this takes us back to Geek-9pm's question-

Quote
1. Is in desirable to prevent users from seeing video again? Why?
The first part was answered- effectively a yes- but the second part- why- was never addressed. What is the purpose of preventing this content from being viewed multiple times? "I don't want them to" isn't really enough.Thank you all but I was looking forward to strollin


Discussion

No Comment Found