Question regarding a batch file

October 26, 2010 at 13:22:30
Specs: Windows XP
Hi All

I need your help.

I am trying to create a batch script which FTP a single file from Windows to Linux servers.

I want to keep the same path for the source and destination since I want to use a single variable in my script so that I can use that for ftp'ing that single file across 4 different regions e.g: windows to linix, linuxA to linuxB, Linux B to Linuc C, and Linux C to linux D.

But the problem is in windows I have the path:


And in Linux it is:


How can get rid of character "E" and then change "\" to "/" ?

Please let me know what is the logic to resolve this.

I really appreciate your help.


See More: Question regarding a batch file

October 27, 2010 at 14:17:59
In most instances, Windows allows you substitute forward slashes for back slashes. Also, if this script runs on the E: drive, you can leave it out of the path. This means you might be able to just use /portal/wps2/wp_profile/temp, and call it a day.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question