Search found 8 matches

by bhas85
09 Feb 2023 11:38
Forum: DOS Batch Forum
Topic: Batch script to pass all files in directory and execute the vbs script
Replies: 3
Views: 2029

Re: Batch script to pass all files in directory and execute the vbs script

Hi Hackoo My requirement is to pass files from P:\prog\*.txt as a parameter at filename which is high lighted with the script. Please let me know if i am not clear with my requirement. Running the command manually from command prompt temporarily C:\Programs\FT\FTMain\cmd>send.vbs ft=SEND_FF appli=Ro...
by bhas85
09 Feb 2023 02:04
Forum: DOS Batch Forum
Topic: Batch script to pass all files in directory and execute the vbs script
Replies: 3
Views: 2029

Batch script to pass all files in directory and execute the vbs script

My requirement is: In a dir i have text files. I need to pass the files names to the vbs script. From command prompt i am passing each file like below. Now my requirement is to pass all files in directory through the script. Sometimes i will get filenames with spaces as well 2023-02-03- 15474.txt.Ne...
by bhas85
10 Dec 2014 13:19
Forum: DOS Batch Forum
Topic: Batch script to copy 0 byte and non 0 byte to another dir
Replies: 10
Views: 8218

Re: Batch script to copy 0 byte and non 0 byte to another di

Hi Squashman,

Yes i had files in the directory "C:\batch\vijay1".But still i am getting file not found.

1.raw
1.xml
kiran.xml
vijay.raw
vijay123
by bhas85
09 Dec 2014 11:33
Forum: DOS Batch Forum
Topic: Batch script to copy 0 byte and non 0 byte to another dir
Replies: 10
Views: 8218

Re: Batch script to copy 0 byte and non 0 byte to another di

Hi Joesphf, I changed the drive but still i am seeing file not found error.Could you please help me what exactly do i need to change. @echo off set "from=C:\batch\vijay1" set "to=C:\batch\vijay2" set masks_1=*.raw *.xml set masks_2=*. pushd "%from%" for /f "tokens=...
by bhas85
08 Dec 2014 12:41
Forum: DOS Batch Forum
Topic: Batch script to copy 0 byte and non 0 byte to another dir
Replies: 10
Views: 8218

Re: Batch script to copy 0 byte and non 0 byte to another di

Hi Foxidrive, When i tried to test the script.It says file not found. @echo off set "from=U:\vijay1" set "to=U:\vijay2" set masks_1=*.raw *.xml set masks_2=*. pushd "%from%" for /f "tokens=1*" %%i in ('robocopy . %random% %masks_1% /nc /ndl /njh /njs /l') do i...
by bhas85
05 Dec 2014 16:48
Forum: DOS Batch Forum
Topic: Batch script to copy 0 byte and non 0 byte to another dir
Replies: 10
Views: 8218

Re: Batch script to copy 0 byte and non 0 byte to another di

Hi Yuri,

Thanks a lot for your reply.I had some queries please explain me.I didn't understand the below one.For example i had file names 'file1,file2 etc which are zero or non zero'.Could you please explain me how the below intilisation will work.

Code: Select all

set masks_2=*.
by bhas85
04 Dec 2014 12:07
Forum: DOS Batch Forum
Topic: Batch script to copy 0 byte and non 0 byte to another dir
Replies: 10
Views: 8218

Re: Batch script to copy 0 byte and non 0 byte to another di

Hi Yuri,
Thanks a lot for your script.I had one question if the file is `text1` i.e without any extension.Not sure the below intilisation will work or not.Please explain me on this concept to move the file to different directoty.

set masks_2=*.
by bhas85
27 Nov 2014 14:04
Forum: DOS Batch Forum
Topic: Batch script to copy 0 byte and non 0 byte to another dir
Replies: 10
Views: 8218

Batch script to copy 0 byte and non 0 byte to another dir

I tried to find the solution but no luck.Could some one please provide me the batch script for the below one. In a directory i had 3 types of files which need to move to another directory. 1) .RAW and .XML files if they are zero they need to move 2) Any file without any extension i.e normal file nee...