Search found 48 matches
- Mon Oct 25, 2010 5:37 pm
- Forum: Coding Questions
- Topic: Can an exe be made to delete itself?
- Replies: 28
- Views: 10773
Re: Can an exe be made to delete itself?
This does not work on 7.
- Mon Oct 18, 2010 1:24 am
- Forum: Coding Questions
- Topic: How do I determine if a string is a file or a folder?
- Replies: 2
- Views: 811
- Mon Oct 18, 2010 12:50 am
- Forum: Coding Questions
- Topic: How do I determine if a string is a file or a folder?
- Replies: 2
- Views: 811
How do I determine if a string is a file or a folder?
Hi. How can I tell if a given specification (string) is a file or a folder?
- Sun Oct 17, 2010 7:11 pm
- Forum: Coding Questions
- Topic: How would one digitally sign a file programmatically?
- Replies: 18
- Views: 3290
Re: How would one digitally sign a file programmatically?
blueznl, you must be a hacker!blueznl wrote:I married a chinese, dunno' if that counts

- Sun Oct 17, 2010 4:26 am
- Forum: Tricks 'n' Tips
- Topic: MoveFile procedure
- Replies: 3
- Views: 1777
Re: MoveFile procedure
Alright then! How about something like this (for Windows only)?
Procedure MoveFile(file1.s, file2.s)
If Left(file1, FindString(file1, "\", 3)) = Left(file2, FindString(file2, "\", 3))
ProcedureReturn RenameFile(file1, file2)
EndIf
If Not CopyFile(file1, file2)
ProcedureReturn 0
EndIf ...
Procedure MoveFile(file1.s, file2.s)
If Left(file1, FindString(file1, "\", 3)) = Left(file2, FindString(file2, "\", 3))
ProcedureReturn RenameFile(file1, file2)
EndIf
If Not CopyFile(file1, file2)
ProcedureReturn 0
EndIf ...
- Sat Oct 16, 2010 2:32 am
- Forum: Coding Questions
- Topic: Copying a file timestamp to another file
- Replies: 2
- Views: 755
Re: Copying a file timestamp to another file
Oh whoops! That did it. Thank you.
- Sat Oct 16, 2010 1:40 am
- Forum: Coding Questions
- Topic: How would one digitally sign a file programmatically?
- Replies: 18
- Views: 3290
Re: How would one digitally sign a file programmatically?
Yep, that would make sense then.PB wrote:> What makes you think they were Chinese people?
The word "China" that was next to "Location" in their profile.
- Fri Oct 15, 2010 10:46 pm
- Forum: Tricks 'n' Tips
- Topic: MoveFile procedure
- Replies: 3
- Views: 1777
MoveFile procedure
Code: Select all
Procedure.i MoveFile(file1.s, file2.s)
If Not CopyFile(file1, file2)
ProcedureReturn 0
EndIf
ProcedureReturn DeleteFile(file1)
EndProcedure
Debug MoveFile("c:\users\name\desktop\1.txt", "d:\backup\1.txt")
- Fri Oct 15, 2010 10:26 pm
- Forum: Coding Questions
- Topic: Copying a file timestamp to another file
- Replies: 2
- Views: 755
Copying a file timestamp to another file
How do I copy a file's timestamp (created, accessed, modified) from one file to another?
Here's what I tried, but it doesn't work:
Procedure CopyFileStamp(file1.s, file2.s)
Protected created=GetFileDate(file1, #PB_Date_Created)
Protected accessed=GetFileDate(file1, #PB_Date_Accessed)
Protected ...
Here's what I tried, but it doesn't work:
Procedure CopyFileStamp(file1.s, file2.s)
Protected created=GetFileDate(file1, #PB_Date_Created)
Protected accessed=GetFileDate(file1, #PB_Date_Accessed)
Protected ...
- Fri Oct 15, 2010 7:01 pm
- Forum: Coding Questions
- Topic: How would one digitally sign a file programmatically?
- Replies: 18
- Views: 3290
Re: How would one digitally sign a file programmatically?
I'll try to refrain from asking questions that might get people suspicious (if i realize it might come across that way).
Please don't be afraid of asking any questions.
Why some people get suspicious is because we had a problem with some Chinese people (I think) in this forum asking help on how to ...
Please don't be afraid of asking any questions.
Why some people get suspicious is because we had a problem with some Chinese people (I think) in this forum asking help on how to ...
- Fri Oct 15, 2010 6:14 pm
- Forum: PureFORM & JaPBe
- Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
- Replies: 1545
- Views: 680338
Re: jaPBe 3.10.9 [IDE for PB 4.xx]
When I click the dropdown arrow on the top right, it crashes.]
I can't reproduce this, sorry.
Does it happen all the time ?
Yes, I tried it 3 different times, same result:
Problem signature:
Problem Event Name: APPCRASH
Application Name: jaPBe.exe
Application Version: 3.10.9.849
Application ...
I can't reproduce this, sorry.
Does it happen all the time ?
Yes, I tried it 3 different times, same result:
Problem signature:
Problem Event Name: APPCRASH
Application Name: jaPBe.exe
Application Version: 3.10.9.849
Application ...
- Fri Oct 15, 2010 5:48 pm
- Forum: Coding Questions
- Topic: How would one digitally sign a file programmatically?
- Replies: 18
- Views: 3290
Re: How would one digitally sign a file programmatically?
I promise I'm not making any sort of malware. That kind of activity is reserved for the scum of the earth. I've been on the receiving end of viruses that destroyed all the data on my backup external drive, so I would never even think about doing anything like that.
I don't mean to leave a bad ...
I don't mean to leave a bad ...
- Fri Oct 15, 2010 5:24 am
- Forum: Coding Questions
- Topic: Application / user / program paths...
- Replies: 13
- Views: 5719
- Fri Oct 15, 2010 4:41 am
- Forum: Coding Questions
- Topic: How to make sure a file handle is closed
- Replies: 3
- Views: 815
Re: How to make sure a file handle is closed
It's something like this, but called repeatedly on the same file to replace different pieces.
#REPLACEONE = 1
#SHOWRESULTS = 2
Procedure.i FileHexReplace(File$, DataToFind$, DataToReplace$, Flags=0, StartPosition=1, BufferLen=4096, *Count=0)
Protected _ltf.i = Len(DataToFind$), _ltr.i=Len ...
#REPLACEONE = 1
#SHOWRESULTS = 2
Procedure.i FileHexReplace(File$, DataToFind$, DataToReplace$, Flags=0, StartPosition=1, BufferLen=4096, *Count=0)
Protected _ltf.i = Len(DataToFind$), _ltr.i=Len ...
- Fri Oct 15, 2010 2:46 am
- Forum: Coding Questions
- Topic: How to make sure a file handle is closed
- Replies: 3
- Views: 815
How to make sure a file handle is closed
I've noticed that sometimes (approximately 4% of the time), when I run a PB app that deals with writing to a file and closing it, Windows will take extra time to release the file handle even though it's technically closed, which causes an access violation if I attempt to immediately access the same ...