Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Greg Newsgroups: it.comp.lang.visual-basic Subject: Re: Programma di prova Date: Wed, 17 Feb 2016 23:59:24 +0100 Organization: solani.org Lines: 20 Message-ID: References: <263ba2cb-cfc1-46a2-911e-e0cff379097d@googlegroups.com> <9a4d9b03-6648-4738-baaf-d1406f42e1f8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit X-Trace: solani.org 1455749966 12059 eJwNxskBwDAIA7CVuAxhnAbq/Udo9RI8NacikQGCJe47zUPBiyjuLk0DHf9wRsLb9PG8NvD7AR27EQU= (17 Feb 2016 22:59:26 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 17 Feb 2016 22:59:26 +0000 (UTC) X-User-ID: eJwFwQEBwDAIAzBNlBaYnMOGfwlP5GExyVBQq62yWuxxXsv9xue8BkhD9hhEojQNdTazfhC7EHY= X-Newsreader: MesNews/1.08.06.00-it Cancel-Lock: sha1:Bz6ilsAA+iynJL49KehzvEaMiQE= X-NNTP-Posting-Host: eJwNwocRwDAIBLCVqG8zDqbsP0JykisYdQwO8/1hPaIoQdKsKumtxLE2IpJysPfqvAD6jdYHBhcQog== Xref: csiph.com it.comp.lang.visual-basic:18703 Il 17/02/2016 23:06:35 Luca D ha scritto: > Per curiosità l'ho provato, e in effetti sembra proprio faccia un wrap delle funzioni di sistema su data e ora. > > In compenso è scritto proprio terra-terra, e puoi fregarlo tranquillamente usando le funzioni che restituiscono > informazioni sui file... Infatti dalla funzione Date() sotraggo la data di creazione di un certi file, ma Date devo per forza usarla e se questa rimane bloccata... > questo semplice codice (è in VB.NET, ma direi che si spiega da solo) torna la data corretta > anche queando Time Stopper è attivo. > My.Computer.FileSystem.WriteAllText("anti-cheat.txt", "xxx", False) > Dim fi As New IO.FileInfo("anti-cheat.txt") > MessageBox.Show(fi.LastWriteTime.ToShortDateString) Non conosco il vbnet, ma il confronto di date come avviene? -- Greg