»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 08-08-2003, 07:34 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 6
esc0 is on a distinguished road
Batch file help

I have this batch file prob. i try to log in to a windows shell thru dos so i put the following lines in :

conn ip port
cd ..
cd..
MKDIR foldername
exit

thats just an example.
after i log into the shell the cd.. wont execute. can anyone help me to get this work.

esc0 is offline   Reply With Quote
Old 08-08-2003, 07:38 PM   #2 (permalink)
Registered User
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: Bay Area, CA USA
Posts: 6,966
OuTpaTienT is on a distinguished road
Send a message via ICQ to OuTpaTienT
Why do you have a CD.. command at all? Why not just use the MD command with the full path. Like:

md c:\directoryname\subdirectoryname\etc
OuTpaTienT is offline   Reply With Quote
Old 08-08-2003, 07:40 PM   #3 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 6
esc0 is on a distinguished road
well thats just some extra info i added. the big prob is getting the batch to execute commands off the batch after it logs into the shell
esc0 is offline   Reply With Quote
Old 08-08-2003, 07:49 PM   #4 (permalink)
Registered User
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: Bay Area, CA USA
Posts: 6,966
OuTpaTienT is on a distinguished road
Send a message via ICQ to OuTpaTienT
Quote:
Originally posted by esc0
the big prob is getting the batch to execute commands off the batch...
Sorry. I don't quite understand what you mean.

Sometime with these batch files there are strange idiosyncrasies that are only going to be caught when examining the actual specifics of the file. You're welcome to (if you want) post your file that you're having problems with so we can better understand what's going on.
OuTpaTienT is offline   Reply With Quote
Old 08-08-2003, 07:53 PM   #5 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 6
esc0 is on a distinguished road
ok this batch file connects me into a windows shell. as u can see i have more that 1 cmd to execute. so i log into the shell. but once im connected to the other computer (shell) the 2nd line wont execute. it might be that the batch is executing the command on my shell insted of doing it on the other shell i connected too.
esc0 is offline   Reply With Quote
Old 08-09-2003, 12:19 AM   #6 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 6
esc0 is on a distinguished road
anyone know ?
esc0 is offline   Reply With Quote
Old 08-10-2003, 04:00 PM   #7 (permalink)
Registered User
 
Eladijaz's Avatar
 
Join Date: Oct 2001
Location: Adelaide, Australia
Posts: 391
Eladijaz is on a distinguished road
Try the 'call' command (to call another batchfile). You can place your shell executable in the second batchfile and then when it is finished running that exec. it should return you to the original batch file and continue from its place.
Regards,
Elad.
Eladijaz is offline   Reply With Quote
Old 08-10-2003, 09:35 PM   #8 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 6
esc0 is on a distinguished road
hmm can u provide an example please
esc0 is offline   Reply With Quote
Old 08-11-2003, 12:43 AM   #9 (permalink)
Banned
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 1,595
Siliconjunkie is on a distinguished road
Send a message via AIM to Siliconjunkie
This looks remarkably like a hack. Connect to an IP, go up 2 folders, test if you can make a folder then exit?

Only serves one purpose I can think of....
Siliconjunkie is offline   Reply With Quote
Old 08-11-2003, 01:42 AM   #10 (permalink)
Registered User
 
Join Date: Aug 2003
Posts: 6
esc0 is on a distinguished road
thats just an example what it actually is im uploading an email list to send my newsletter but didint want to make this too scomplicated just wanted to explain it easy
esc0 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 09:35 PM.