Click here to Skip to main content
15,903,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 4:31
santi nuñez30-Apr-18 4:31 
GeneralRe: math challenge Pin
Richard MacCutchan30-Apr-18 5:38
mveRichard MacCutchan30-Apr-18 5:38 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 6:43
santi nuñez30-Apr-18 6:43 
GeneralRe: math challenge Pin
Richard MacCutchan30-Apr-18 6:53
mveRichard MacCutchan30-Apr-18 6:53 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 6:55
santi nuñez30-Apr-18 6:55 
GeneralRe: math challenge Pin
Richard Deeming30-Apr-18 7:02
mveRichard Deeming30-Apr-18 7:02 
GeneralRe: math challenge Pin
santi nuñez30-Apr-18 9:37
santi nuñez30-Apr-18 9:37 
QuestionAdjusting a .VBS/.DOS command. Pin
glenn masters28-Apr-18 1:40
glenn masters28-Apr-18 1:40 
First of all apologies if I posted in wrong forum and im a complete newbie to programming so need things idiot proof if you know what I mean.

What I need to do is I have a .vbs of which runs into a .DOS and need to add a few things. The person who wrote the original has since left my work where I got it from .

I have posted below parts of the script where I think it needs to go but if wrong just let me know and I will post the whole script.


1) When it puts it into a folder I need it to ask me to input a password . When password input I then need it to move onto the .VBA command of zipping

2) What I also need is instead of it just creating a 7Z file with the name of zipped.7z I need it to be the same name as what the folder was called originally.


1) Think needs to go here just before where it says "all files moved"...

On Error Goto 0
For Each objFile In objDLFolder.Files
objFSO.MoveFile objFile.Name, strNewFolder & "\"
Next

objWShell.Popup "All files moved.", 0, "Done", vbInformation Or vbSystemModal Or &h00040000&

dim dotbat
set dotbat=createobject("wscript.shell")
dotbat.Run "C:\Users\icc.cctv\Documents\DONOTDELETE1.bat", 1, True
set dotbat=Nothing



2) I think it needs to go somewhere in there ...



cls&echo ENTER THE STATEMENT INTO FOLDER,
echo THIS WINDOW WILL CLOSE IN 5 SEC.
) else (
cls
7z a -t7z "C:\Downloads\zipped.7z" "C:\Downloads"
echo.&echo ALL FILES MOVED^^!
)
timeout 5 /NOBREAK >nul&exit/b



As said im compleely new so go easy on me please Smile | :) Smile | :)
AnswerRe: Adjusting a .VBS/.DOS command. Pin
Eddy Vluggen30-Apr-18 1:26
professionalEddy Vluggen30-Apr-18 1:26 
QuestionVB.NET encryption code to VB6 Pin
Member 305688623-Apr-18 22:57
Member 305688623-Apr-18 22:57 
AnswerRe: VB.NET encryption code to VB6 Pin
Jochen Arndt24-Apr-18 0:48
professionalJochen Arndt24-Apr-18 0:48 
AnswerRe: VB.NET encryption code to VB6 Pin
Chris Quinn24-Apr-18 4:40
Chris Quinn24-Apr-18 4:40 
QuestionFlat NumericUpDown Pin
jtpaa19-Apr-18 20:03
jtpaa19-Apr-18 20:03 
AnswerRe: Flat NumericUpDown Pin
Maciej Los23-Apr-18 10:08
mveMaciej Los23-Apr-18 10:08 
QuestionGetting Run-time error '9' for Subscript out of range Pin
Member 1378560917-Apr-18 23:41
Member 1378560917-Apr-18 23:41 
AnswerRe: Getting Run-time error '9' for Subscript out of range Pin
Richard MacCutchan17-Apr-18 23:58
mveRichard MacCutchan17-Apr-18 23:58 
Questionextracting data problem to ms exel and access database location different in some system Pin
lazy_dude16-Apr-18 2:15
lazy_dude16-Apr-18 2:15 
AnswerRe: extracting data problem to ms exel and access database location different in some system Pin
Jochen Arndt16-Apr-18 3:32
professionalJochen Arndt16-Apr-18 3:32 
GeneralRe: extracting data problem to ms exel and access database location different in some system Pin
lazy_dude18-Apr-18 4:23
lazy_dude18-Apr-18 4:23 
GeneralRe: extracting data problem to ms exel and access database location different in some system Pin
Jochen Arndt18-Apr-18 4:50
professionalJochen Arndt18-Apr-18 4:50 
GeneralRe: extracting data problem to ms exel and access database location different in some system Pin
lazy_dude18-Apr-18 4:51
lazy_dude18-Apr-18 4:51 
GeneralRe: extracting data problem to ms exel and access database location different in some system Pin
Richard MacCutchan18-Apr-18 5:55
mveRichard MacCutchan18-Apr-18 5:55 
GeneralRe: extracting data problem to ms exel and access database location different in some system Pin
lazy_dude23-Apr-18 6:55
lazy_dude23-Apr-18 6:55 
GeneralRe: extracting data problem to ms exel and access database location different in some system Pin
Richard MacCutchan23-Apr-18 7:00
mveRichard MacCutchan23-Apr-18 7:00 
Questionmy program running on background makes my current open application in desktop to blink blink such excel , google, outlook etc. Pin
Member 1280941214-Apr-18 13:38
Member 1280941214-Apr-18 13:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.