How To Copy And Paste Files In Temporary Folder Using Visual Basic
I need to copy and paste files in temporary folder using VB coding..and how to clear the temporary folder using VB as well..
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Deleting The Temporary Internet Files Via Visual Basic... API ?
Hi
Okay Problem: Deleting Temporary Internet Files within Visual Basic
kill command: kill c:path*.* will not work
When you use the dos prompt and change dir to the TIF directory
dir will show you no folders or files
Dir /a will however
There are many sub folders within the TIF Folder
Tried using code similar to what is below
The code will systematically scan every file in a directory and attempt to delete it if its name is not "." or ".."
Sub DelDir(DirName as string)
Const ATTR_NORMAL = 0
Const ATTR_DIRECTORY = 16
Dim OriginalDir, FileName, NextFileName as string
OriginalDir = CurDir$
ChDir DirName
FileName = Dir$("*.*", 0)
Do While FileName <> ""
Kill FileName
FileName = Dir$
Loop
Do
FileName = Dir$("*.*", ATTR_DIRECTORY)
While FileName = "." Or FileName = ".."
FileName = Dir$
Wend
If FileName = "" then Exit Do
Nuke (FileName)
Loop
ChDir OriginalDir
' RmDir DirName
End Sub
However this did not delete anything from the folder
Using "Step into" (F8) the code finds only "." and ".." to be contained within the TIF Folder and no further sub directorys or files are found and hence the procedure exits...
really need some help on this
Has to be an API that lets you do this simply right?
Any help would be great.
-thanks
.Phyte
Deleting The Temporary Internet Files Via Visual Basic... API ?
Hi
Okay Problem: Deleting Temporary Internet Files within Visual Basic
kill command: kill c:path*.* will not work
When you use the dos prompt and change dir to the TIF directory
dir will show you no folders or files
Dir /a will however
There are many sub folders within the TIF Folder
Tried using code similar to what is below
The code will systematically scan every file in a directory and attempt to delete it if its name is not "." or ".."
====Being Code=====
Sub DelDir(DirName As String)
Const ATTR_NORMAL = 0
Const ATTR_DIRECTORY = 16
Dim OriginalDir, FileName, NextFileName As String
OriginalDir = CurDir$
ChDir DirName
FileName = Dir$("*.*", 0)
Do While FileName <> ""
Kill FileName
FileName = Dir$
Loop
Do
FileName = Dir$("*.*", ATTR_DIRECTORY)
While FileName = "." Or FileName = ".."
FileName = Dir$
Wend
If FileName = "" Then Exit Do
Nuke (FileName)
Loop
ChDir OriginalDir
' RmDir DirName
End Sub
====End Code=====
However this did not delete anything from the folder
Using "Step into" (F8) the code finds only "." and ".." to be contained within the TIF Folder and no further sub directorys or files are found and hence the procedure exits...
really need some help on this
Has to be an API that lets you do this simply right?
Any help would be great.
-thanks
.Phyte
Using Visual Basic To Copy Files Within An INtranet
hi all,
does anyone knows how to find out the computer name of the particular network and then copy the files from one computer into another within a network which is an INtranet.. Using visual basic? thankS
Temporary Table Under Visual Basic
Hello yall.
I know when programming under Delphi that you can declare in your codesource temp table wich are stored in the memory on the local machine.You use the table then when you don't need it you remove it from memory.That's great!
My problem is that i can't find anywhere a tutorial that shows me how to declare and use temp table under vb.I don't even know if it is possible,i guess it must be but can't find infos.
If someone can help me this would be great.
Thanks in advance
Copy Temporary Internet Files
hello all, any one konws how to copy Temporary Internet Files to other locations? the FileCopy function does not work ..
thanks
Empty Temporary Internet Files Folder
This may sound easy, but sadly enough it isn't.
I wrote a little tool to empty temp and temp inet folders, but it doesn't delete all temporary internet files on the currently logged in user account, and I think I found out why.
There seem to be two types of temp inet files: Some are in their folder structure in the folder Content.IE5 and can be deleted, but I found that a lot of them are stored inside one file called index.dat which cannot be deleted.
Is there any way with VB6 to look inside the index.dat file?
If not, is there a way to automatically empty the temporary internet files WITHOUT using the normal way in the Internet Options?
My tool should do it all by itself...
Unless there is a way to have VB6 open the wizard and control it and close it when it's done...
Any thoughts?
Thanks!
*RESOLVED* Temporary Internet Files Folder - (Where Is It ????)
I am trying to work with the Windows temporary internet files folder. When I use the "Dir" Function I keep getting a "" string. I KNOW IT IS THERE! There must be something special about this folder. (I am trying to delete the contents) Is there some special API call that is needed? (I am a NOOB at API's)
Thanks,
Puffgroovy
Edited by - Puffgroovy on 2/16/2005 7:11:03 AM
Code To Delete Temporary Internet Files Folder
hey guys. i am working on a program to clean out the temporary internet files folder in xp located at:
c:documents and settings\%user%local settings emporary internet files
no matter what command i use like rmdir, kill, etc, i cannot remove the files and subdirectories in there. it seems like a special folder that is protected by windows or something. any help is greatly appreciated!
Can't Find Files In Temporary Internet File Folder?
For my Internet browser I am trying to make, I am trying to find a way to delete the temporary internet files, like you can in Internet Explorer. However, when I use the "FindFirstFile" APi to look in the temporary internet files folder, it shows that the only two things in the folder are Content.IE5 and desktop.ini. I know there is nothing wrong with my function, it's an example I found, and it also works with every other folder. Any solutions anyone kows of, or maybe some links?
Unable To Write/read Temporary Internet Files Folder!
Hi All,
I can't access the Temporary Internet Files Folder on my hard drive using Visual Basic!
I can not write to the folder using my windows explorer so I tried to use Visual Basic, But Visual Basic doesn't even know the folder and tells me the address is incorrect...
Any other way to FORCE file-write/delete to this directory??
Thanks!
Jeffrey
Copy / Paste Files
Hi,
is it possible to copy a file into another file?
i have a file which i want to copy, then delete then paste into another new file which is made with some new data. can this be done?
im not using the fso im just using c:file.dat
Simon.
Copy Paste Files..
How do i use Copy paset comands how wold the script look like if...So when click or forum unload load...Copy a file it the same folder as the exe and then paste it to i destination..(C:bla/)...And the rename it to another name..
Like Copy app.path /bleh.ini
Paste C:/Programfiles/blehaaa/BELHing.dll
So it changes name alwso....
Copy-paste Files
Hi,
How to copy file(s) to window's clipboard and paste them back to specified folder.
Thanks.
How Can You Copy And Paste Files?
filburt: I thought you post was pretty cool. I was under the impression that Name was only used to Rename stuff. Anyway, I tried it, with some interesting results.
VB Code:
'this worked fineName "c: ext.txt" As "c:asp ext.txt"'this gave me a file not found errorName "c: ext.txt" As "c:asputil ext.txt"
It seems if the destination is more than one folder deep, this has major heartburn. ?
How To Copy Paste Files
Hi, I would like some help on a task for my program.
I need to find out how to copy an existing photo from a folder and paste it in an other folder.
I know how to rename a file (Name App.Path & "" & "Tmp.jpg" As App.Path & "Folder" & "tmpCopy.jpg"),
but I can't figure out how to copy paste them so than the original stays at it's place.
Thankx for the help.
Copy And Paste Files
hi, i need to be able to copy any sort of file from one folder and place it into another folder. These files might be .txt, .doc .... anything
Also i need to be able to check if the folder i am copying to exists, if it doesnt then i need to create the folder
i would appreciate any help with this
thanks
Visual Basic - Disable Paste
Hi everyone,
Please I want to disable the right click and paste inside a text field
also the Ctrl + V on the keyboard. Any one can help me?
Best Regards,
_____
Copy And Paste A List Of Files
I'm loading a list of files and tryin to copy selected, un-selected, or all files from the list to a new subdirectory. cant get it to work.. here is what I've got so far... using listbox style=checkbox
Code:
Private Sub cmdNameNew_Click()
Dim fso
Dim strFile As String
Dim NewFileDir As String
Dim FileDir As String
Dim Create As String
Create = txtNameNew.Text
FileDir = "C:Documents and SettingsOwnerMy DocumentsBrainDeadMapCollection"
NewFileDir = "C:Documents and SettingsOwnerMy DocumentsBrainDead"
MkDir NewFileDir & Create
For i = frmMain.lstNew.ListCount - 1 To 0 Step -1
If frmMain.lstNew.Selected(i) = True Then
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(FileDir & frmMain.lstMaps.Selected(i) & ".bms") Then
FileCopy FileDir & frmMain.lstNew.List(i), NewFileDir & Create
MsgBox "Map List Created", vbInformation, "Notice"
Else
MsgBox "The file you are trying to copy does not exist.", vbCritical, "Error"
End If
End If
Next i
If txtNameNew.Text = "" Then
MsgBox "You Have Not Named Your List Yet", vbCritical, "Error"
End If
End Sub
Copy-paste New Application Files
I make changes on my program very often so after I change something in application I have to go from PC to PC and copy paste new .exe file or .dll
I was thinking on this way but I do not know how I can make it;
Can I make on every PC that shortcut of my application actually always call one VB Script or .exe. Script will do this; go to one location on the server and if find any file on that location copy them and paste locally on PC.
In this case I do not need to walk around and copy-paste files every time I make any change in application.
Does anybody have idea or example of vb script, or vb code how I can make it.
Thanks,
Ilimax
Copy, Cut And Paste Wrecks Files
Hi,
I have an integral editor in my application and having trouble with the copy, cut and paste routine. I suspect the problem occurs when the file is opened for edit but I do not know that to be fact. Below I have shown the code that I suspect is causing the problem and below that is a sample of the code showing the problem.
Servo
Dim iFile As Integer, tempstring As Long, templine As String
Open txt_FileName For Input As iFile
Do While Not EOF(1)
Line Input #iFile, templine
tempstring = tempstring + templine + Chr(13) + Chr(10)
Loop
Close #iFile
N4189 X-3.09 Y-.6631 Z1.0334
N4190 X-3.12 Y-.655 Z1.0386
N4191 X-3.15 Y-.6468 Z1.0437 N4192 X-3.18 Y-.6386
Z1.0488
N4193 X-3.21 Y-.6304 Z1.0537
N4194 X-3.24 Y-.6221 Z1.0587
N4195 X-3.27 Y-.6137 Z1.0635
N4196 X-3.3 Y-.6053 Z1.0683
N4197 X-3.33 Y-.5969 Z1.073
N4198 X-3.36 Y-.5885 Z1.0777
N4199 X-3.39 Y-.58 Z1.0823
N4200 X-3.42 Y-.5714 Z1.0868
N4201 X-3.45 Y-.5629 Z1.0913
N4202 X-3.48 Y-.5543 Z1.0957
N4203 X-3.51 Y-.5457 Z1.1
N4204 X-3.54 Y-.5371 Z1.1042
Copy, Cut And Paste Wrecks Files
Hi,
I have an integral editor in my application and having trouble with the copy, cut and paste routine. I suspect the problem occurs when the file is opened for edit but I do not know that to be fact. Below I have shown the code that I suspect is causing the problem and below that is a sample of the code showing the problem.
Servo
Dim iFile As Integer, tempstring As Long, templine As String
Open txt_FileName For Input As iFile
Do While Not EOF(1)
Line Input #iFile, templine
tempstring = tempstring + templine + Chr(13) + Chr(10)
Loop
Close #iFile
N4189 X-3.09 Y-.6631 Z1.0334
N4190 X-3.12 Y-.655 Z1.0386
N4191 X-3.15 Y-.6468 Z1.0437 N4192 X-3.18 Y-.6386
Z1.0488
N4193 X-3.21 Y-.6304 Z1.0537
N4194 X-3.24 Y-.6221 Z1.0587
N4195 X-3.27 Y-.6137 Z1.0635
N4196 X-3.3 Y-.6053 Z1.0683
N4197 X-3.33 Y-.5969 Z1.073
N4198 X-3.36 Y-.5885 Z1.0777
N4199 X-3.39 Y-.58 Z1.0823
N4200 X-3.42 Y-.5714 Z1.0868
N4201 X-3.45 Y-.5629 Z1.0913
N4202 X-3.48 Y-.5543 Z1.0957
N4203 X-3.51 Y-.5457 Z1.1
N4204 X-3.54 Y-.5371 Z1.1042
Edited by - ServoWizard on 2/7/2004 7:40:21 PM
Copy Files From Shared Folder To The Local C: Folder
Hai
This is Kiran,
I am working with Access 2002 ( XP ).
I have to copy required Excel files from the shared folder to the Local system C: drive for example.
Can any one help me that how can I do it with VBA in MS Access.
Thanks in advance.
Kiran Karnati.
~~~~~~~### I CAN'T PASTE IN VISUAL BASIC! SIMPLE & QUICK HELP PLS###~~~~~~~
Code:
Winsock1.SendPacket Chr$(&H00) & Chr$(&HC0) & Chr$(&H69) & Chr$(&H0B) & Chr$(&HB5) & Chr$(&H1A) & Chr$(&H00) & Chr$(&H0B) & Chr$(&H2B) & Chr$(&H12) & Chr$(&HC1) & Chr$(&H86) & Chr$(&H08) & Chr$(&H00) & Chr$(&H45) & Chr$(&H00) & Chr$(&H00) & Chr$(&H71) & Chr$(&H74) & Chr$(&H06) & Chr$(&H40) & Chr$(&H00) & Chr$(&H80) & Chr$(&H06) & Chr$(&HC7) & Chr$(&HD3) & Chr$(&H0A) & Chr$(&H0C) & Chr$(&H99) & Chr$(&H10) & Chr$(&H42) & Chr$(&H38) & Chr$(&HD9) & Chr$(&H58) & Chr$(&H04) & Chr$(&H5C) & Chr$(&H1A) & Chr$(&HB2) & Chr$(&H00) & Chr$(&H09) & Chr$(&H14) & Chr$(&HE0) & Chr$(&HBF) & Chr$(&HDE) & Chr$(&H57) & Chr$(&H11) & Chr$(&H50) & Chr$(&H18) & Chr$(&H22) & Chr$(&H38) & Chr$(&HE8) & Chr$(&H27) & Chr$(&H00) & Chr$(&H00) & Chr$(&H46) & Chr$(&H00) & Chr$(&H02) & Chr$(&H80) & Chr$(&HB2) & Chr$(&HC4) & Chr$(&H2A) & Chr$(&H2A) & Chr$(&H55) & Chr$(&H6E) & Chr$(&H52) & Chr$(&H65) & Chr$(&H67) & Chr$(&H2A) & Chr$(&H2A) & Chr$(&H2B) & Chr$(&H12) & Chr$(&HC1) & Chr$(&H86) & Chr$(&H16) & Chr$(&H00) & Chr$(&H00) & Chr$(&H1C) & Chr$(&HC6) & Chr$(&H18) & Chr$(&HF0) & Chr$(&H22) & Chr$(&H91) & Chr$(&HDE) & Chr$(&H93) & Chr$(&H02) & Chr$(&H0D) & Chr$(&H00) & Chr$(&H00) & Chr$(&H53) & Chr$(&H6F) & Chr$(&H6F) & Chr$(&H74) & Chr$(&H68) & Chr$(&H73) & Chr$(&H61) & Chr$(&H79) & Chr$(&H65) & Chr$(&H72) & Chr$(&H00) & Chr$(&H41) & Chr$(&H72) & Chr$(&H65) & Chr$(&H73) & Chr$(&H20) & Chr$(&H31) & Chr$(&H2E) & Chr$(&H38) & Chr$(&H2E) & Chr$(&H31) & Chr$(&H2E) & Chr$(&H32) & Chr$(&H39) & Chr$(&H36) & Chr$(&H32) & Chr$(&H00) & Chr$(&H0A) & Chr$(&H0C) & Chr$(&H99) & Chr$(&H10) & Chr$(&HDD) & Chr$(&H86) & Chr$(&HC6) & Chr$(&H7F) & Chr$(&H01) & Chr$(&H00) & Chr$(&H04) & Chr$(&H00)
I dont knw why it happens but i can't copy and paste this into my VB! i packet sniffed it and my hex to too long it does not fit in one line in VB! too...and shows an error while i execute that code! i dont knw why... its really sucky but its strange u can try pasting it in ur VB! maybe becoz its too long but wat do i do?
i have to make a connection after all!
thx in advance
Move/copy/paste Files From Explorer To My App
Hi! Can anyone help me with a file move/copy/paste problem I encountered while trying to get my application to paste files copied or cut in explorer? My problem is that I cannot distinguish between cut and copy. When using the clipboard, all I get is the full file name, but that is not enough for me to figure out if my app should copy or move the file. I also looked at the SHFileOperation function, but I encountered the same problem - how to distinguish if the file was copied or cut. I have my application working with copying the files, although a cut command might have been given in explorer. I will greatly appreciate it if anyone can tell me how can I make the distinction between cut and copy (and for that matter, how does explorer distinguish between the two).
Thanks,
Kalin
Implementing Copy/paste Or Drag/drop For FILES
Well i wanna create an app that lets me copy a bunch of files like explorer does it, but without more then one copy at a time. So if u ask it to copy something when he's already copying, he doesn't do it, he waits that the previous transfer is finished.
It would be like norton commander that we had in dos, 2 list of files, and we can drag/drop and cut/copy/paste from one place to the other.
If anybody knows how to do that (cut/copy/paste or drag/drop) from one list to the other, I would be gratefull for the info
By the way, if this app exist already, i would be glad to download it instead of developping it hehehehe
Copy, Cut And Paste Wrecks Files / Attention Metallisoft
Hi,
Same song second verse. Your suggestions made no difference. Just so you won't trip over the absence og it I have included the "iFile = FreeFile". The copy / cut sequence is so cut and dried that I did not include them in the example. This is a real PITA because it forces the machine into a shut down when it encounters any one of three file errors.
ORIGINAL MESSAGE:
I have an integral editor in my application and having trouble with the copy, cut and paste routine. I suspect the problem occurs when the file is opened for edit but I do not know that to be fact. Below I have shown the code that I suspect is causing the problem and below that is a sample of the code showing the problem.
Let's see if we can kill a couple ducks with one shot here.
I need to know how to kill keyboard key repeats so that the keypress simply turns on a command and does not accummulate them so that when you release the key the accummulated commands do continue on while you're waiting for KeyUp event to issue the cancel command order.
Servo
Dim iFile As Integer, tempstring As Long, templine As String
iFile = FreeFile
Open txt_FileName For Input As iFile
Do While Not EOF(1)
Line Input #iFile, templine
tempstring = tempstring + templine + Chr(13) + Chr(10)
Loop
Close #iFile
N4189 X-3.09 Y-.6631 Z1.0334
N4190 X-3.12 Y-.655 Z1.0386
N4191 X-3.15 Y-.6468 Z1.0437 N4192 X-3.18 Y-.6386
Z1.0488
N4193 X-3.21 Y-.6304 Z1.0537
N4194 X-3.24 Y-.6221 Z1.0587
N4195 X-3.27 Y-.6137 Z1.0635
N4196 X-3.3 Y-.6053 Z1.0683
N4197 X-3.33 Y-.5969 Z1.073
N4198 X-3.36 Y-.5885 Z1.0777
N4199 X-3.39 Y-.58 Z1.0823
N4200 X-3.42 Y-.5714 Z1.0868
N4201 X-3.45 Y-.5629 Z1.0913
N4202 X-3.48 Y-.5543 Z1.0957
N4203 X-3.51 Y-.5457 Z1.1
N4204 X-3.54 Y-.5371 Z1.1042
Copy Files From Folder To Folder
what is the easist way to copy files from one folder to another folder useing names from a text box.....
what i mean by names in a text box is i have the names of the .BMP files in a text box on my form.....
then i will have the path that the actull textures are in...
so i need to pull the texture files from the folder to another folder?
also is it just me or are these boards reaaaaaaaalll slow loading at night
Copy Files From Folder To Other Folder
Hi!
I use the following code for copy files from one folder to another. The folder newimages contain the same files with folder oldimages, plus some new files. How to copy only the files which not exist in folder oldimages? I dont want overwrite the same files. When run the following code an error occured.
Thanks
Dim fs As New Scripting.FileSystemObject
MousePointer = vbHourglass
fs.CopyFile "c:
ewimages*.*", "c:oldimages", False
Set fs = Nothing
MousePointer = vbDefault
MsgBox "OK!"
Trying To Copy Files From Folder To Folder
hello everyone i have a problem with my code and was wandering if someone can help me figure it out.....this is what im trying to do....
i have a text box that has names in it...this can range from 10 names to however many....ok what these names are is the filename of a texture file that is either a .bmp or a .tga....the actull texture file will reside in 1 of three folders.....the first folder would be extures then exturessprites then exturesdecals
and what i need to do is filecopy the actull file that fits the name from my text box to another folder that the user will speicify but for now im saying "c extures"
ok i have code that takes the names in the text box and breaks them down by first placeing them all in one string and then places then one at a time so that i can attach them to a path....sence the command filecopy needs a source and a dest.....
ok i then have code that searches all three folders for me looking to find the file from the textbox in one of the three folders......
ok here is the code that i have for all of it.....
Code:
Private Sub CopyFile(ByVal fn As String, ByVal DestDir As String)
'copies file(s) fn.* from 3 fixed directories to destdir
Dim srcDir As String
Dim s As String
If Right$(DestDir, 1) <> "" Then DestDir = DestDir & ""
srcDir = "c:SierraSWAT3Missionssamplemission exture"
s = Dir$(srcDir & fn & ".*")
While Len(s) 'while s is not null
FileCopy srcDir & fn, DestDir & fn
s = Dir$ 'get another file
Wend
srcDir = "c:SierraSWAT3Missionssamplemission exturedecals"
s = Dir$(srcDir & fn & ".*")
While Len(s) 'while s is not null
FileCopy srcDir & fn, DestDir & fn
s = Dir$ 'get another file
Wend
srcDir = "c:SierraSWAT3Missionssamplemission exturesprites"
s = Dir$(srcDir & fn & ".*")
While Len(s) 'while s is not null
FileCopy srcDir & fn, DestDir & fn
s = Dir$ 'get another file
Wend
End Sub
Private Sub Command5_Click()
Dim i As Integer
Dim names As String
Dim aFn() As String 'array of strings
names = Text1.Text 'collect the names into a single string
'PRESUMABLY you've separated the names somehow, maybe by crlf or tabs or spaces or commas.
' If not, you got a problem....
aFn = Split(names, vbCrLf) 'assumes filenames are separated by spaces
For i = 0 To UBound(aFn)
If Len(aFn(i)) Then 'simple error check
CopyFile aFn(i), "c: extures"
End If
Next i
End Sub
can anyone look at this and tell me why it wont do anything....im not getting an error but its not copying the texture files over either......ive racked my brain till im blue from frustratiuon on this....one thing is that im preaty new to vb and im not use to working with private subs unless they are used in the same event im doing.....thanks everyone in advance
How To Copy All The Files In One Folder Into Another Folder?
Hi,
I am a beginner trying to right code to copy all the file in one folder into another folder using VB 6.0 code.
I tried to use FileCopy ("FolderName", "AnotherFolderName") to do it with a * (wild card) to catch all the files in one folder. The wild card * didn't work.
Can anyone help?
Thanks a lot!
Julie
How To Copy Files From Folder To Folder (Help)
i got 2 main folders named New and Old.
Inside New and Old got their sub folders , ABC1, ABC2, ABC3... until n ; New and Old folders should have same amount of sub folder except there is no file inside the Old folder.
my question is how to copy files from New_folder's sub folders to Old_folder's sub folders?
eg,
C:New_folderABC1files --> C:Old_folderABC1
C:New_folderABC2files --> C:Old_folderABC2
C:New_folderABCnfiles --> C:Old_folderABCn
thanks
Please see the post #6
Edited by - wtkm on 7/5/2007 2:39:05 AM
Copy New Files From A Folder To Another
Hi!
I've got a small problem.
I want to copy only new files from my Cd-Rom Drive to an existing folder on my hard disk.
Can you help me?
Thank you very much
Visual Basic 6 File Copy
Hi, i'm new here and first of all i want to say hello to all!
I have a problem when trying to copy file that has blank spaces in file name.
I use FileCopy "c:my file.txt", "c:1.txt"
This command wont work because i have blank space in my file.txt file name.
So my question is, how can i copy files that have blanks in their names?
Edit:
I have another question.
I need to copy all files and folders from specific path to another location.
Lets say I want to copy all files, folders and subfolders (including hidden and system files) from D: to C:MyBackup
How could i do that?
Copy A Form In Visual Basic 6
Hi,this might seem stupid question but i need to copy a form/datareport and save it as another name. I need the same structure and same code just a different file name. e.g If i currently have a report named test(test.dsr) if i say 'save as' Testxxx then the original report changes to test(testxxx.dsr) but i dont see a new data report added in project.
How do i copy it.
Phew i hope i am making some sense here.
brij
Select All Files In A Folder And Copy Them.
Hi Guys,
I need to try and add a back up files feature in my app.
At the moment I have a form that lets the user see the files saved by using a browser control with simple code on a buttons event like so:
Code:
Me.brwWebBrowser1.Navigate App.Path & "/Saved/"
I would like to add an additional button that when clicked selects & copys all the files and folders in the Saved folder.........and put them in a folder of the users choice.
If I could figure out how to select and copy all the files being displayed in the browser control I think I could get through the rest??
Thanks in advance for any thoughts.
Copy 10 Files To Selected Folder
I want to copy 10 specific files from a fixed folder location to a folder selected by the user. The source path and file names can be hard coded since they w/n change so the user does not have to select the 10 files.
"FileCopy" would work fine if the destination was fixed (but things are never that simple). (Used this as a "test learning" thing)
BrowseFolder looks to be the best choice for selecting the destination. Is there a way to pass the selection to FileCopy?
Thanks!
Copy Files And Folder Questions
Hello,
I know how to copy folders to specific drives. What I want to do is...have the user click a button and a folder browser window come up that ONLY ask me for the folder name. In short, I want to keep certain defaults that the user cannot change such as the drive that the folder will be in and the DEFAULT files that I setup in the code. I ONLY want them to copy my DEFAULT files to my DEFAULT Drive...BUT...I want to allow them to give the folder that the files will reside in a name.
Thanks!
Copy Only Files Associated With Record To New Folder
When the user opens a record from the database he views images and docs etc associated with that record from the database. What I need to do in some cases is have a cmdbutton that will copy those images and docs etc to a new folder. Not copy all the files from one folder to another just the files associated with the record he has open. The images and docs etc are in arrays. Since each record contains a number of images and docs. Hope someone can help me solve this
Thanks for any and all help
|