Search found 27 matches
- 24 May 2013 11:34
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
hi Endoro, I think there was a miscommunication at that time as i was not able to get the results on screen, so really didnt know how the result looked. The earlier code was supposed to work with Local drives and not network drives, hence finding it difficult to write the line in your current code w...
- 24 May 2013 06:17
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
hi Endoro, What i am saying is, right now the output differs from what it was previously. There is no ID column shown and so all the ID's are missing from the output file, so i dont know which ID's were processed. see previous: cls doc docx jpg mdb pdf png ppt xls xlsm 10001 0 0 0 3 1 2 0 0 0 0 1000...
- 23 May 2013 14:21
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
hi Endoro, Though i still fail to understand what SET "." means or does, i have got the code working by changing a few things. for e.g. the %targetfolder% was not specified while making the directories. i also eliminated the linefeeds between each statements and also removed wrap text so t...
- 23 May 2013 09:28
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Hi Endoro/ Ed Dyreen, I tried SET "." from SET "." >nul 2>&1 || (echo(no files from "%ClassID_ID_List%" found in "%startfolder%"&goto:eof) on one of the Network drives to see what is the result, but it gave an error. Environment variable . not defined ...
- 21 May 2013 22:37
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Hi Endoro, BTW did you get a chance to look at my earlier 2 messages? they speak of an issue with PUSHD where it cannot map a path containing spaces. Again, i cannot understand the latter part of your code. I tried running the latest code on the two network drives w/o putting @Echo Off to see the co...
- 21 May 2013 09:21
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Hi Ed Dyreen, However, i am unable to understand the code in below section. Also, again "Echo" closing braces are missing to enclose a block of statements. Confusing innit, no closing braces are required cause it was never opened The command is not 'echo' but 'echo ' or 'echo.' or 'echo('...
- 21 May 2013 02:57
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Ok, when i do that with each of these two network drives: pushd \\10.20.12.129\shared\Inputs Folder similarly, pushd \\10.50.46.188\shared\Outputs Folder when i check with 'NET USE', i see, Y:\ \\10.20.12.129\shared Z:\ \\10.50.46.188\shared and not, Y:\ \\10.20.12.129\shared\Inputs Folder Z:\ \\10....
- 21 May 2013 00:28
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Hi Endoro, Thanks for reverting so soon! actually if i use PUSHD i wont know the drive letter, right? then how am i going to use it in code if i want to move/copy files from a source network drive to a destination network drive? i.e. there will be 2 drives and i wont know which is the current one. h...
- 20 May 2013 22:21
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Thanks for the information. i will get back to you on it once i go through the code with this information in mind. as of now, i am getting another issue with this code. this code does not seem to work when, 1] i move folders between network drives (source network drive, destination network drive). 2...
- 20 May 2013 04:30
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Hi Endoro, this is good! i was able to create the respective folders and generate the files. just trying to understand the code. Correct me where ever i go wrong: @echo off&setlocal set "startfolder=%~1" &rem parameter #1 set "ClassID_ID_List=%~2" &rem parameter #2 se...
- 17 May 2013 23:43
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
Hi Endoro,
this is the same earlier code, but this does not create the folders, subfolders and copy (move) the files to their respective folders.
this is the same earlier code, but this does not create the folders, subfolders and copy (move) the files to their respective folders.
- 17 May 2013 14:15
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
hi,
that is because i had removed the files on next run as code was not creating folders and sub-folders and i was afraid that these imp files may get deleted or corrupted. sorry.
how do i club the two codes together?
that is because i had removed the files on next run as code was not creating folders and sub-folders and i was afraid that these imp files may get deleted or corrupted. sorry.
how do i club the two codes together?
- 17 May 2013 13:34
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
ome files may have to be created for test purpose containing the ID's e.g.
10001_amv.jpg
10002_pvr.mdb
10001_cnn.doc
....
etc
10001_amv.jpg
10002_pvr.mdb
10001_cnn.doc
....
etc
- 17 May 2013 13:23
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420
Re: create folders from a list and move files
cool this code accepts parameters from the command line. C:\Users\sifar786\Desktop>test15.bat "C:\users\sifar786\desktop" "ClassID_ID_List.txt" "Out.csv" bat csv docx ini lnk pdf pptx txt xls xlsm xlsx zip 16 1 1 1 3 1 1 2 3 3 3 4 C:\Users\sifar786\Desktop> now the majo...
- 17 May 2013 13:11
- Forum: DOS Batch Forum
- Topic: create folders from a list and move files
- Replies: 49
- Views: 37420