Jump to content

batch programming concern..

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
sankasu

sankasu

    Newbie

  • Members
  • Pip
  • 2 posts
hi everyone,..


I need to download a file from a remote machine by just supplying the file name and the path.can anyone help me with the same.I wish to do it through a batch file.Can anyone help me with any pre-existing script that they have.I am new to batch file programming...

#2
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
If it's not accessible through HTTP i'd go for FTP, a batch script would be easy to do, I'd go for a .bat file for windows. Those are easy to make since it just uses the command prompt. Everybody knows how to use that.

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Any access to a remote machine is going to be through URL or a virtual file system (FTP, network drive, etc). You will not be able to use the remote machine's file-system path unless it has a funny service exposing that information.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
sankasu

sankasu

    Newbie

  • Members
  • Pip
  • 2 posts
So guys which one do you think would be advisable and can you help me with a sample code if any..i.e available with u...

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I regularly map virtual drives to LAN resources to support file copying through batch file. My batch file sees \\server\vfolder\subfolder as something like X:\subfolder.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog