0
votes
0answers
2 views

Copying and renaming a file into the proper subdirectories

I have a particularly tricky batch scripting request. I have a file/folder structure like this /mapcfgs/ /folder 1/ somefile.new somefile.old /folder 2/ someotherfile.new ...
1
vote
0answers
14 views

FTP batch script hangs at ftp> prompt

I'm trying to execute the following batch script to copy file from ftp to local directory. However, I'm only able to login to the ftp but can't get the rest (bold code) of the script to execute. The ...
0
votes
0answers
4 views

How to creat setting files for websphere app server automated update tools

I made a script that can be used on WebSphere DMGR (v6.1) to update an application (modified the script you can find there ...
0
votes
1answer
14 views

Dos Batch Script to copy contents of one folder into another using wildcards

I am trying to create a batch script that copies the contents of one folder into another. Ihave tried this: mkdir "c:\Jamie" cd c:\jamie_DateTimeStamp* xcopy * "c:\Jamie" for /D %%f in (c\jamie_*) ...
1
vote
3answers
32 views

how to clear a variable which is set from command line by “set /a var1=”

In Windows batch files, I accept variable from user input by set /p var1=, after var1 is used, I don't know how to reset/clear its value. If I don't reset/clear its value, when user meets set /p ...
0
votes
1answer
54 views

Extracting IP from ping into variable in bat script

is there anyway i could do this? @echo off REM #Testing FIND in IPCONFIG setlocal EnableDelayedExpansion for /f "tokens=3" %%a in ('ping localhost ^| findstr /i "reply"') do ( set address=%%a ...
1
vote
2answers
17 views

batch script - map network drives by computer name

I am trying to modify a current script that is executed as logon script by domain GPO. I have a special case where if users log into a specific machine on the domain, I need to map different network ...
0
votes
1answer
36 views

How can I cd into a directory that i created before in my batch file?

it's the first time that I write a little script in batch, I need to create a folder named like the date, then I want to go in that directory and run the dump of my database. Here my code: cd ...
0
votes
1answer
28 views

Invoke jar file via bat and get the output to same console

I have test.jar which just contain a single class and it has a main method. That just prints out some string to std out. I need to run this jar using .bat file. So I used @echo off start java -jar ...
0
votes
1answer
33 views

How to Auto-update a powerpoint presentation on another PC

I have 10 computers running a powerpoint presentation at 10 different sites. These computers display the presentation on a flat screen television as our electronic menu board. What i'd like to do is ...
0
votes
2answers
30 views

Converting simple shell script to batch assistance [closed]

Ok, I have a really simple shell script I wrote for a friend. Turns out he is on a PC and I don't know how to write batch scripts. Can anyone help me perform the following functionality in a .bat? ...
0
votes
2answers
27 views

DOS Batch file - Copy file based on filename into folder

I would like to use a batch file to put them into default folder, but the account name is in the middle of the folder. Have any script I can use in dos command prompt? 888123AA.pdf 888123BB.pdf ...
-2
votes
0answers
16 views

How to save the permission of a folder and its sub directories in windows 2000 server, and restore the same to windows 2008 server [closed]

I want to copy the permissions of a folder and its sub-dirs from a Windows 2000 server and restore the same permissions on a Windows 2008 server. In Windows 2000 server icacls command not found, so I ...
0
votes
1answer
39 views

Windows Batch File :: Output to Variable when using Pipes

Is it possible to output the result of a command to a variable when using pipes? Example batch file script: @echo off cls echo Script Started setlocal enableextensions ::prove that functionality ...
1
vote
1answer
25 views

Batch script to show multiple filenames in one call

Im trying to create a batch script to call a .exe to carry out analysis on multiple data files in a same folder. The syntax should be like: "D:\Softwares\Analyzer.exe" [DataFile1].dat [DataFile2].dat ...

1 2 3 4 5 34
15 30 50 per page