Computing.Net > Forums > Programming > batch files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch files

Reply to Message Icon

Name: suneela
Date: February 19, 2009 at 22:00:34 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

can i take the path and file name separately and use them together in a command using batch files



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: February 19, 2009 at 23:26:32 Pacific
Reply:

Probably.


0

Response Number 2
Name: suneela
Date: February 19, 2009 at 23:57:14 Pacific
Reply:

how can u please demonstrate me


0

Response Number 3
Name: suneela
Date: February 20, 2009 at 00:01:32 Pacific
Reply:

how can it be done suppose i stored the path of the file in PATH variable and file name in
FNAME variable . how can i use this PATH and FNAME in a copy command
i used this
copy %PATH%&%FNAME%
is this correct if not correct me


0

Response Number 4
Name: Valerie (by Garibaldi)
Date: February 20, 2009 at 00:21:01 Pacific
Reply:

Copy %PATH%%FNAME% BUT I advise you not to use %PATH% as that's already Set as a global environment variable.


0

Response Number 5
Name: suneela
Date: February 20, 2009 at 00:45:34 Pacific
Reply:

i did write like this
set \p path1="enter path name"
set \f fname="enter file name"
copy %path1% %fname%
its not waiting for file name to be entered but it is copying the file which i wanted i don't how its working


0

Related Posts

See More



Response Number 6
Name: reno
Date: February 20, 2009 at 01:11:02 Pacific
Reply:

set/p

not set\p or set\f


0

Response Number 7
Name: suneela
Date: February 20, 2009 at 03:13:22 Pacific
Reply:

thanks very very much i got it


0

Sponsored Link
Ads by Google
Reply to Message Icon

Visual Basic how 2 read all keyboard i...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch files

Batch file to count a specific character in a www.computing.net/answers/programming/batch-file-to-count-a-specific-character-in-a/19751.html

FTP batch file www.computing.net/answers/programming/ftp-batch-file/9027.html

batch file www.computing.net/answers/programming/batch-file/13936.html