Oh, proviso: I didn't try it using a property, just used a field reference instead, but seems like it shouldn't make a difference, and should be faster (I think) than the shell call, especially if the file is large since the weird copy command actually does do a strange pseudo copy.
On Thu, May 12, 2011 at 3:45 PM, Mike Bonner <[email protected]> wrote: > Hey, heres another interesting method > > If you put the following into a property > > *Dim objShell, objFolder* > * * > * Set objShell = CreateObject("Shell.Application")* > * Set objFolder = objShell.NameSpace("[[tFolder]]")* > * objFolder.Items.Item("[[tFile]]").ModifyDate = "[[the date && the > time]]"* > * > * > then you can split out the folder name into tFolder (including trailing > slash) and filename into tFile, then execute it as follows > > *do merge(the propertyyouset) as vbscript* > > seems to work like a charm > > On Thu, May 12, 2011 at 3:23 PM, Phil Davis <[email protected]> wrote: > >> Thanks Mike! I'll check it out. >> Phil >> >> >> >> On 5/12/11 2:20 PM, Mike Bonner wrote: >> >>> I believe you can do this >>> get shell("copy /b myfile.txt + , ,") >>> >>> Should work, but i'd test it on non-critical files first, or have >>> backups. >>> Seems to work from the bit of testing i've done. >>> On Thu, May 12, 2011 at 2:56 PM, Phil Davis<[email protected]> wrote: >>> >>> Is there a Windows equivalent to the Unix 'touch' command? I would like >>>> to >>>> prevent the last-mod date of a Windows file from showing when the file >>>> was >>>> actually last modified. >>>> >>>> Thanks - >>>> -- >>>> Phil Davis >>>> >>>> PDS Labs >>>> Professional Software Development >>>> http://pdslabs.net >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> [email protected] >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> [email protected] >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> -- >> Phil Davis >> >> PDS Labs >> Professional Software Development >> http://pdslabs.net >> >> >> _______________________________________________ >> use-livecode mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
